EnumPrinterData function Null safety winspool

int EnumPrinterData(
  1. int hPrinter,
  2. int dwIndex,
  3. Pointer<Utf16> pValueName,
  4. int cbValueName,
  5. Pointer<Uint32> pcbValueName,
  6. Pointer<Uint32> pType,
  7. Pointer<Uint8> pData,
  8. int cbData,
  9. Pointer<Uint32> pcbData
)

The EnumPrinterData function enumerates configuration data for a specified printer.

DWORD EnumPrinterDataW(
  _In_  HANDLE  hPrinter,
  _In_  DWORD   dwIndex,
  _Out_ LPTSTR  pValueName,
  _In_  DWORD   cbValueName,
  _Out_ LPDWORD pcbValueName,
  _Out_ LPDWORD pType,
  _Out_ LPBYTE  pData,
  _In_  DWORD   cbData,
  _Out_ LPDWORD pcbData
);

Implementation

int EnumPrinterData(
        int hPrinter,
        int dwIndex,
        Pointer<Utf16> pValueName,
        int cbValueName,
        Pointer<Uint32> pcbValueName,
        Pointer<Uint32> pType,
        Pointer<Uint8> pData,
        int cbData,
        Pointer<Uint32> pcbData) =>
    _EnumPrinterData(hPrinter, dwIndex, pValueName, cbValueName, pcbValueName,
        pType, pData, cbData, pcbData);