GetPrinterData function Null safety winspool

int GetPrinterData(
  1. int hPrinter,
  2. Pointer<Utf16> pValueName,
  3. Pointer<Uint32> pType,
  4. Pointer<Uint8> pData,
  5. int nSize,
  6. Pointer<Uint32> pcbNeeded
)

The GetPrinterData function retrieves configuration data for the specified printer or print server.

DWORD GetPrinterDataW(
  _In_  HANDLE  hPrinter,
  _In_  LPTSTR  pValueName,
  _Out_ LPDWORD pType,
  _Out_ LPBYTE  pData,
  _In_  DWORD   nSize,
  _Out_ LPDWORD pcbNeeded
);

Implementation

int GetPrinterData(
        int hPrinter,
        Pointer<Utf16> pValueName,
        Pointer<Uint32> pType,
        Pointer<Uint8> pData,
        int nSize,
        Pointer<Uint32> pcbNeeded) =>
    _GetPrinterData(hPrinter, pValueName, pType, pData, nSize, pcbNeeded);