GetStatus¶
Description
Gets the latest printer status.
Syntax
INT GetStatus( INT i_hdl, LPDWORD o_status )
Parameter
i_hdl
API handle
Specify the API handle retrieved by OpenMonPrinter.
o_status
Printer status variable
Specify a variable to store the printer status.
Return value
On success: Returns 0. On failure: Returns an error code. See "Error Code List" for details of the error code.
Remarks
- When reconnection to the printer is detected, the printer status is the status received last at the time.
- See "Printer Status List" for details of the printer status.