ReactOS 0.4.15-dev-7934-g1dc8d80
jobs.c File Reference
#include "precomp.h"
Include dependency graph for jobs.c:

Go to the source code of this file.

Functions

BOOL WINAPI AddJobW (HANDLE hPrinter, DWORD Level, PBYTE pData, DWORD cbBuf, PDWORD pcbNeeded)
 
BOOL WINAPI EnumJobsW (HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs, DWORD Level, PBYTE pJob, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
 
BOOL WINAPI GetJobW (HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pJob, DWORD cbBuf, PDWORD pcbNeeded)
 
BOOL WINAPI ScheduleJob (HANDLE hPrinter, DWORD dwJobID)
 
BOOL WINAPI SetJobW (HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pJobInfo, DWORD Command)
 

Function Documentation

◆ AddJobW()

BOOL WINAPI AddJobW ( HANDLE  hPrinter,
DWORD  Level,
PBYTE  pData,
DWORD  cbBuf,
PDWORD  pcbNeeded 
)

Definition at line 11 of file jobs.c.

12{
14
15 // Sanity checks.
16 if (!pHandle)
17 {
19 return FALSE;
20 }
21
22 return pHandle->pPrintProvider->PrintProvider.fpAddJob(pHandle->hPrinter, Level, pData, cbBuf, pcbNeeded);
23}
#define FALSE
Definition: types.h:117
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
PSPOOLSS_PRINT_PROVIDER pPrintProvider
Definition: precomp.h:46
PRINTPROVIDOR PrintProvider
Definition: precomp.h:36
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1830
struct _SPOOLSS_PRINTER_HANDLE * PSPOOLSS_PRINTER_HANDLE
_In_ DWORD _Out_ PDWORD pcbNeeded
Definition: winddi.h:3828
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:56

Referenced by _RpcAddJob(), and AddJobA().

◆ EnumJobsW()

BOOL WINAPI EnumJobsW ( HANDLE  hPrinter,
DWORD  FirstJob,
DWORD  NoJobs,
DWORD  Level,
PBYTE  pJob,
DWORD  cbBuf,
PDWORD  pcbNeeded,
PDWORD  pcReturned 
)

Definition at line 26 of file jobs.c.

27{
29
30 // Sanity checks.
31 if (!pHandle)
32 {
34 return FALSE;
35 }
36
37 return pHandle->pPrintProvider->PrintProvider.fpEnumJobs(pHandle->hPrinter, FirstJob, NoJobs, Level, pJob, cbBuf, pcbNeeded, pcReturned);
38}

Referenced by _RpcEnumJobs(), and EnumJobsA().

◆ GetJobW()

BOOL WINAPI GetJobW ( HANDLE  hPrinter,
DWORD  JobId,
DWORD  Level,
PBYTE  pJob,
DWORD  cbBuf,
PDWORD  pcbNeeded 
)

Definition at line 41 of file jobs.c.

42{
44
45 // Sanity checks.
46 if (!pHandle)
47 {
49 return FALSE;
50 }
51
52 return pHandle->pPrintProvider->PrintProvider.fpGetJob(pHandle->hPrinter, JobId, Level, pJob, cbBuf, pcbNeeded);
53}

Referenced by _RpcGetJob(), and GetJobA().

◆ ScheduleJob()

BOOL WINAPI ScheduleJob ( HANDLE  hPrinter,
DWORD  dwJobID 
)

Definition at line 56 of file jobs.c.

57{
59
60 // Sanity checks.
61 if (!pHandle)
62 {
64 return FALSE;
65 }
66
67 return pHandle->pPrintProvider->PrintProvider.fpScheduleJob(pHandle->hPrinter, dwJobID);
68}

Referenced by _RpcScheduleJob().

◆ SetJobW()

BOOL WINAPI SetJobW ( HANDLE  hPrinter,
DWORD  JobId,
DWORD  Level,
PBYTE  pJobInfo,
DWORD  Command 
)

Definition at line 71 of file jobs.c.

72{
74
75 // Sanity checks.
76 if (!pHandle)
77 {
79 return FALSE;
80 }
81
82 return pHandle->pPrintProvider->PrintProvider.fpSetJob(pHandle->hPrinter, JobId, Level, pJobInfo, Command);
83}
Definition: shell.h:41

Referenced by _RpcSetJob(), and SetJobA().