SetPrinter function Null safety winspool

int SetPrinter(
  1. int hPrinter,
  2. int Level,
  3. Pointer<Uint8> pPrinter,
  4. int Command

The SetPrinter function sets the data for a specified printer or sets the state of the specified printer by pausing printing, resuming printing, or clearing all print jobs.

BOOL SetPrinterW(
  _In_ HANDLE hPrinter,
  _In_ DWORD  Level,
  _In_ LPBYTE pPrinter,
  _In_ DWORD  Command


int SetPrinter(int hPrinter, int Level, Pointer<Uint8> pPrinter, int Command) =>
    _SetPrinter(hPrinter, Level, pPrinter, Command);