SetPrinterDataEx function winspool
The SetPrinterDataEx function sets the configuration data for a printer or print server. The function stores the configuration data under the printer's registry key.
DWORD SetPrinterDataExW(
_In_ HANDLE hPrinter,
_In_ LPCTSTR pKeyName,
_In_ LPCTSTR pValueName,
_In_ DWORD Type,
_In_ LPBYTE pData,
_In_ DWORD cbData
);
Implementation
int SetPrinterDataEx(
int hPrinter,
Pointer<Utf16> pKeyName,
Pointer<Utf16> pValueName,
int Type,
Pointer<Uint8> pData,
int cbData,
) => _SetPrinterDataEx(hPrinter, pKeyName, pValueName, Type, pData, cbData);