BOOL (WINAPI *pfnGetPrinterDataFromPort)(
HANDLE hPort, | |
DWORD ControlID, | |
LPWSTR pValueName, | |
LPWSTR lpInBuffer, | |
DWORD cbInBuffer, | |
LPWSTR lpOutBuffer, | |
DWORD cbOutBuffer, | |
LPDWORD lpcbReturned | |
); |
GetPrinterDataFromPort gets data from a bidirectional printer.
Port monitors should ignore this parameter.
GetPrinterDataFromPort returns TRUE if the operation is successful; otherwise, it returns FALSE.
A port monitor can implement GetPrinterDataFromPort to provide IEEE 1284 support for a language monitor’s usage. A language monitor can support GetPrinterDataFromPort to query information from a bidirectional printer that supports the IEEE 1284 standard. Vendors define the status request strings passed from a language monitor to the associated bidirectional printer.
Monitors should log the ERROR_INVALID_PARAMETER error for all calls that they do not understand. This ensures that the spooler will then try to read the key from the registry directly.
GetPrinterDataFromPort can be optionally implemented by all monitors.