SetPrinterDataEx function Null safety winspool

int SetPrinterDataEx(
  1. int hPrinter,
  2. Pointer<Utf16> pKeyName,
  3. Pointer<Utf16> pValueName,
  4. int Type,
  5. Pointer<Uint8> pData,
  6. int cbData
)

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);