EasyManua.ls Logo

ABLE Ap1400 - Page 30

ABLE Ap1400
42 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Ref: "Ap1400ProgGuide1_2.docx" Page 30 of 42
Document Revision: “1.2”
Document Date: “9 Apr. 2013”
GetEnumPrinterCount
Gets the number of printers currently in an enumerated state
Prototype
int WINAPI GetEnumPrinterCount(void);
Description
Returns the number of printers currently in an enumerated state or 0 for none.
This function does not guarantee that the number of printers enumerated are still
active.
A call to EnumPrinters() must first be made for this function to return any value
other than 0.
Arguments
None
Returns
Integer value representing the number of printers successfully enumerated by a
previous call to EnumPrinters.
No error condition exists for this function and the system error code is not modified.
Example
//Enumeration count
int m_iEnumeratedPrinters=GetEnumPrinterCount();
//Display results
TRACE(_T(“Printer count=%d.\n”),m_iEnumeratedPrinters);

Related product manuals