Tric_RegistAllStatusGet

Tric_RegistAllStatusGet is used to obtain all of the printer status data transmitted from the status monitor.

short WINAPI Tric_RegistAllStatusGet(
 LPSTR  lpszPrinterName,  // a pointer to a printer name string that ends with a NULL character (IN)
 HWND  hWnd              // a window handle that conveys the printer status information (IN)
);
  

Parameter

lpszPrinterName
a parameter to specify a pointer to a string for printer friendly name, which ends with a NULL character.

hWnd
a parameter to specify a window handle of the application that receives the WM_COPYDATA messages. The status monitor sends the WM_COPYDATA messages toward this window handle.

Return Value

The return value is an error code.

Description

One application can receive the WM_COPYDATA messages sent to other applications that have requested the status information with "Tric_RequestStatusNotify."
This is not the case, however, if no applications have requested the status monitor for the status information with "Tric_RequestStatusNotify," or if the transmission of the status information has been cancelled with "Tric_ReleaseStatusNotify", as no WM_COPYDATA message is transmitted from the status monitor.
To cancel the request, execute "Tric_CancelAllStatusGet."

Reference

index, Tric_RequestStatusNotify, Tric_ReleaseStatusNotify, Tric_CancelAllStatusGet, Error Code
<strong>Back</strong>