Ref: "Ap1400ProgGuide1_2.docx"
Page 31 of 42
Document Revision: “1.2”
Document Date: “9 Apr. 2013”
ClearEnumList
Clears all enumerations of printer on the USB
Prototype
int
WINAPI ClearEnumList(
void
);
Description
Clears the list to all enumerated printers. All memory associated with the printer is
released, and any open handles are closed. All active pipes to printers are
terminated and communication to any active printer will be lost. If it is required to re-
enumerate the USB then this function should be called first. Although any open
handles will be closed and freed, it is good practice to close all open printer handles
prior to calling this function, thus terminating communications with the printers in a
controlled fashion.
Arguments
None
Returns
Integer value representing the error code. The system error code is also set.
Example
//Clear enumeration
//Display results
TRACE(_T(“ClearEnumList returned=%d.\n”),ClearEnumList());