EnumPrinterDataEx function Null safety winspool

int EnumPrinterDataEx(
  1. int hPrinter,
  2. Pointer<Utf16> pKeyName,
  3. Pointer<Uint8> pEnumValues,
  4. int cbEnumValues,
  5. Pointer<Uint32> pcbEnumValues,
  6. Pointer<Uint32> pnEnumValues
)

The EnumPrinterDataEx function enumerates all value names and data for a specified printer and key.

DWORD EnumPrinterDataExW(
  _In_  HANDLE  hPrinter,
  _In_  LPCTSTR pKeyName,
  _Out_ LPBYTE  pEnumValues,
  _In_  DWORD   cbEnumValues,
  _Out_ LPDWORD pcbEnumValues,
  _Out_ LPDWORD pnEnumValues
);

Implementation

int EnumPrinterDataEx(
        int hPrinter,
        Pointer<Utf16> pKeyName,
        Pointer<Uint8> pEnumValues,
        int cbEnumValues,
        Pointer<Uint32> pcbEnumValues,
        Pointer<Uint32> pnEnumValues) =>
    _EnumPrinterDataEx(hPrinter, pKeyName, pEnumValues, cbEnumValues,
        pcbEnumValues, pnEnumValues);