DWORD EngGetPrinterData(
HANDLE hPrinter, | |
LPWSTR pValueName, | |
LPDWORD pType, | |
LPBYTE lpbData, | |
DWORD cbBuf, | |
LPDWord pcbNeeded | |
); |
EngGetPrinterData retrieves configuration data for the specified printer.
Parameters
hPrinter
Handle that identifies the printer for which configuration data should be retrieved. This is the handle that is passed as the hDriver parameter of DrvEnablePDEV.
pValueName
Pointer to a null-terminated string that specifies the type of data to be retrieved.
pType
Points to a variable that receives the data type stored by EngSetPrinterData. This parameter can be null.
lpbData
Pointer to an array of bytes in which the configuration data will be written.
cbBuf
Specifies the size, in bytes, of lpbData.
pcbNeeded
Address that receives the number of bytes copied into lpbData if the function succeeds. This parameter receives the number of bytes required if cbBuf is too small.
Return Value
EngGetPrinterData returns the last logged error message.
See Also