EngGetPrinterData function (winddi.h)
The EngGetPrinterData function retrieves configuration data for the specified printer.
Syntax
ENGAPI DWORD EngGetPrinterData(
[in] HANDLE hPrinter,
[in] LPWSTR pValueName,
[out, optional] LPDWORD pType,
[out, optional] LPBYTE pData,
[in] DWORD nSize,
[out] LPDWORD pcbNeeded
);
Parameters
[in] hPrinter
Handle to the printer for which configuration data should be retrieved. This is the handle that is passed as the hDriver parameter of DrvEnablePDEV.
[in] pValueName
Pointer to a null-terminated string that identifies the data to be retrieved.
[out, optional] pType
Pointer to a variable that receives the data type stored by EngSetPrinterData. This parameter can be NULL.
[out, optional] pData
Pointer to an array of bytes in which the configuration data is written.
[in] nSize
Specifies the size, in bytes, of pData.
[out] pcbNeeded
Pointer to a memory location that receives the number of bytes copied into lpbData if the function succeeds. This parameter receives the number of bytes required if nSizef is too small.
Return value
EngGetPrinterData returns the last logged error message.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows 2000 and later versions of the Windows operating systems. |
Target Platform | Universal |
Header | winddi.h (include Winddi.h) |
Library | Win32k.lib |
DLL | Win32k.sys |