EnumPrinterKey function Null safety winspool

int EnumPrinterKey(
  1. int hPrinter,
  2. Pointer<Utf16> pKeyName,
  3. Pointer<Utf16> pSubkey,
  4. int cbSubkey,
  5. Pointer<Uint32> pcbSubkey

The EnumPrinterKey function enumerates the subkeys of a specified key for a specified printer.

DWORD EnumPrinterKeyW(
  _In_  HANDLE  hPrinter,
  _In_  LPCTSTR pKeyName,
  _Out_ LPTSTR  pSubkey,
  _In_  DWORD   cbSubkey,
  _Out_ LPDWORD pcbSubkey


int EnumPrinterKey(int hPrinter, Pointer<Utf16> pKeyName,
        Pointer<Utf16> pSubkey, int cbSubkey, Pointer<Uint32> pcbSubkey) =>
    _EnumPrinterKey(hPrinter, pKeyName, pSubkey, cbSubkey, pcbSubkey);