GetPrinter function Null safety winspool

int GetPrinter(
  1. int hPrinter,
  2. int Level,
  3. Pointer<Uint8> pPrinter,
  4. int cbBuf,
  5. Pointer<Uint32> pcbNeeded
)

The GetPrinter function retrieves information about a specified printer.

BOOL GetPrinterW(
  _In_  HANDLE  hPrinter,
  _In_  DWORD   Level,
  _Out_ LPBYTE  pPrinter,
  _In_  DWORD   cbBuf,
  _Out_ LPDWORD pcbNeeded
);

Implementation

int GetPrinter(int hPrinter, int Level, Pointer<Uint8> pPrinter, int cbBuf,
        Pointer<Uint32> pcbNeeded) =>
    _GetPrinter(hPrinter, Level, pPrinter, cbBuf, pcbNeeded);