EngGetPrinterData function

The EngGetPrinterData function retrieves configuration data for the specified printer.

Syntax


DWORD EngGetPrinterData(
  _In_      HANDLE  hPrinter,
  _In_      LPWSTR  pValueName,
  _Out_opt_ LPDWORD pType,
  _Out_opt_ LPBYTE  pData,
  _In_      DWORD   nSize,
  _Out_     LPDWORD pcbNeeded
);

Parameters

hPrinter [in]

Handle to the printer for which configuration data should be retrieved. This is the handle that is passed as the hDriver parameter of DrvEnablePDEV.

pValueName [in]

Pointer to a null-terminated string that identifies the data to be retrieved.

pType [out, optional]

Pointer to a variable that receives the data type stored by EngSetPrinterData. This parameter can be NULL.

pData [out, optional]

Pointer to an array of bytes in which the configuration data is written.

nSize [in]

Specifies the size, in bytes, of pData.

pcbNeeded [out]

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

Target platform

Universal

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

DrvEnablePDEV
EngSetPrinterData

 

 

Send comments about this topic to Microsoft

Show: