GetPrinterDataEx function winspool
The GetPrinterDataEx function retrieves configuration data for the specified printer or print server. GetPrinterDataEx can retrieve values that the SetPrinterData function stored. In addition, GetPrinterDataEx can retrieve values that the SetPrinterDataEx function stored under a specified key.
DWORD GetPrinterDataExW(
_In_ HANDLE hPrinter,
_In_ LPCTSTR pKeyName,
_In_ LPCTSTR pValueName,
_Out_ LPDWORD pType,
_Out_ LPBYTE pData,
_In_ DWORD nSize,
_Out_ LPDWORD pcbNeeded
);
Implementation
int GetPrinterDataEx(
int hPrinter,
Pointer<Utf16> pKeyName,
Pointer<Utf16> pValueName,
Pointer<Uint32> pType,
Pointer<Uint8> pData,
int nSize,
Pointer<Uint32> pcbNeeded,
) => _GetPrinterDataEx(
hPrinter,
pKeyName,
pValueName,
pType,
pData,
nSize,
pcbNeeded,
);