2 * PROJECT: ReactOS Print Spooler Service
3 * LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
4 * PURPOSE: Functions for managing print jobs
5 * COPYRIGHT: Copyright 2015 Colin Finck <colin@reactos.org>
11 _RpcAddJob(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD Level
, BYTE
* pAddJob
, DWORD cbBuf
, DWORD
* pcbNeeded
)
15 dwErrorCode
= RpcImpersonateClient(NULL
);
16 if (dwErrorCode
!= ERROR_SUCCESS
)
18 ERR("RpcImpersonateClient failed with error %lu!\n", dwErrorCode
);
22 AddJobW(hPrinter
, Level
, pAddJob
, cbBuf
, pcbNeeded
);
23 dwErrorCode
= GetLastError();
30 _RpcGetJob(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD JobId
, DWORD Level
, BYTE
* pJob
, DWORD cbBuf
, DWORD
* pcbNeeded
)
34 dwErrorCode
= RpcImpersonateClient(NULL
);
35 if (dwErrorCode
!= ERROR_SUCCESS
)
37 ERR("RpcImpersonateClient failed with error %lu!\n", dwErrorCode
);
41 GetJobW(hPrinter
, JobId
, Level
, pJob
, cbBuf
, pcbNeeded
);
42 dwErrorCode
= GetLastError();
49 _RpcScheduleJob(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD JobId
)
52 return ERROR_INVALID_FUNCTION
;
56 _RpcSetJob(WINSPOOL_PRINTER_HANDLE hPrinter
, DWORD JobId
, WINSPOOL_JOB_CONTAINER
* pJobContainer
, DWORD Command
)
59 return ERROR_INVALID_FUNCTION
;