FlushPrinter function Null safety winspool

int FlushPrinter(
  1. int hPrinter,
  2. Pointer<NativeType> pBuf,
  3. int cbBuf,
  4. Pointer<Uint32> pcWritten,
  5. int cSleep

The FlushPrinter function sends a buffer to the printer in order to clear it from a transient state.

BOOL FlushPrinter(
  _In_  HANDLE  hPrinter,
  _In_  LPVOID  pBuf,
  _In_  DWORD   cbBuf,
  _Out_ LPDWORD pcWritten,
  _In_  DWORD   cSleep


int FlushPrinter(int hPrinter, Pointer pBuf, int cbBuf,
        Pointer<Uint32> pcWritten, int cSleep) =>
    _FlushPrinter(hPrinter, pBuf, cbBuf, pcWritten, cSleep);