ReadPrinter function Null safety winspool

int ReadPrinter(
  1. int hPrinter,
  2. Pointer<NativeType> pBuf,
  3. int cbBuf,
  4. Pointer<Uint32> pNoBytesRead

The ReadPrinter function retrieves data from the specified printer.

BOOL ReadPrinter(
  _In_  HANDLE  hPrinter,
  _Out_ LPVOID  pBuf,
  _In_  DWORD   cbBuf,
  _Out_ LPDWORD pNoBytesRead


int ReadPrinter(
        int hPrinter, Pointer pBuf, int cbBuf, Pointer<Uint32> pNoBytesRead) =>
    _ReadPrinter(hPrinter, pBuf, cbBuf, pNoBytesRead);