AddJob function winspool

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

The AddJob function adds a print job to the list of print jobs that can be scheduled by the print spooler. The function retrieves the name of the file you can use to store the job.

BOOL AddJobW(
  _In_  HANDLE  hPrinter,
  _In_  DWORD   Level,
  _Out_ LPBYTE  pData,
  _In_  DWORD   cbBuf,
  _Out_ LPDWORD pcbNeeded
);

Implementation

int AddJob(int hPrinter, int Level, Pointer<Uint8> pData, int cbBuf,
        Pointer<Uint32> pcbNeeded) =>
    _AddJob(hPrinter, Level, pData, cbBuf, pcbNeeded);