Go to the source code of this file.
|
BOOL WINAPI | AddJobA (HANDLE hPrinter, DWORD Level, PBYTE pData, DWORD cbBuf, PDWORD pcbNeeded) |
|
BOOL WINAPI | AddJobW (HANDLE hPrinter, DWORD Level, PBYTE pData, DWORD cbBuf, PDWORD pcbNeeded) |
|
BOOL WINAPI | EnumJobsA (HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs, DWORD Level, PBYTE pJob, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned) |
|
BOOL WINAPI | EnumJobsW (HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs, DWORD Level, PBYTE pJob, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned) |
|
BOOL WINAPI | GetJobA (HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pJob, DWORD cbBuf, PDWORD pcbNeeded) |
|
BOOL WINAPI | GetJobW (HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pJob, DWORD cbBuf, PDWORD pcbNeeded) |
|
BOOL WINAPI | ScheduleJob (HANDLE hPrinter, DWORD dwJobID) |
|
BOOL WINAPI | SetJobA (HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pJobInfo, DWORD Command) |
|
BOOL WINAPI | SetJobW (HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pJobInfo, DWORD Command) |
|
◆ AddJobA()
Definition at line 12 of file jobs.c.
13{
15
17
19 {
20 ERR(
"Level = %d, unsupported!\n",
Level);
23 }
24
26
28 {
33 {
35 }
36 }
38}
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
DWORD UnicodeToAnsiInPlace(PWSTR pwszField)
_In_ DWORD _Out_ PDWORD pcbNeeded
#define ERROR_INVALID_LEVEL
WINBOOL WINAPI AddJobW(HANDLE hPrinter, DWORD Level, LPBYTE pData, DWORD cbBuf, LPDWORD pcbNeeded)
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
◆ AddJobW()
Definition at line 41 of file jobs.c.
42{
45
47
48 if (!pHandle)
49 {
52 }
53
54
56 {
58 }
60 {
62 ERR(
"_RpcAddJob failed with exception code %lu!\n", dwErrorCode);
63 }
65
67 {
69
70
74 }
75
79}
DWORD _RpcAddJob(WINSPOOL_PRINTER_HANDLE hPrinter, DWORD Level, BYTE *pAddJob, DWORD cbBuf, DWORD *pcbNeeded)
#define ERROR_INVALID_HANDLE
static const WCHAR Cleanup[]
#define EXCEPTION_EXECUTE_HANDLER
static const MARSHALLING AddJobInfo1Marshalling
static VOID UpdateTrayIcon(HWND hwnd, LPTSTR szKLID, LPTSTR szName)
BOOL WINAPI MarshallUpStructure(DWORD cbSize, PVOID pStructure, const MARSHALLING_INFO *pInfo, DWORD cbStructureSize, BOOL bSomeBoolean)
#define RpcExceptionCode()
struct _SPOOLER_HANDLE * PSPOOLER_HANDLE
◆ EnumJobsA()
Definition at line 82 of file jobs.c.
83{
88
89 TRACE(
"EnumJobsA(%p, %lu, %lu, %lu, %p, %lu, %p, %p)\n", hPrinter, FirstJob, NoJobs,
Level, pJob, cbBuf,
pcbNeeded, pcReturned);
90
93
95 {
97 {
98 case 1:
99 {
100 for (
i = 0;
i < *pcReturned;
i++ )
101 {
104 {
106 }
109 {
111 }
114 {
116 }
119 {
121 }
124 {
126 }
129 {
131 }
132 }
133 }
134 break;
135
136 case 2:
137 {
138 for (
i = 0;
i < *pcReturned;
i++ )
139 {
142 {
144 }
147 {
149 }
152 {
154 }
157 {
159 }
162 {
164 }
167 {
169 }
172 {
174 }
177 {
179 }
182 {
184 }
185 if ( pji2w[
i].pDevMode )
186 {
188 }
189 }
190 }
191 break;
192 }
194 }
197}
void RosConvertUnicodeDevModeToAnsiDevmode(PDEVMODEW pDevModeInput, PDEVMODEA pDevModeOutput)
__in WDFDMATRANSACTION __out NTSTATUS * pStatus
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
WINBOOL WINAPI EnumJobsW(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs, DWORD Level, LPBYTE pJob, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)
◆ EnumJobsW()
Definition at line 200 of file jobs.c.
201{
204
205 TRACE(
"EnumJobsW(%p, %lu, %lu, %lu, %p, %lu, %p, %p)\n", hPrinter, FirstJob, NoJobs,
Level, pJob, cbBuf,
pcbNeeded, pcReturned);
206
207 if (!pHandle)
208 {
211 }
212
213
215 {
217 }
219 {
221 ERR(
"_RpcEnumJobs failed with exception code %lu!\n", dwErrorCode);
222 }
224
226 {
227
229 {
232 }
233 }
234
238}
DWORD _RpcEnumJobs(WINSPOOL_PRINTER_HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs, DWORD Level, BYTE *pJob, DWORD cbBuf, DWORD *pcbNeeded, DWORD *pcReturned)
static const MARSHALLING * pJobInfoMarshalling[]
BOOL WINAPI MarshallUpStructuresArray(DWORD cbSize, PVOID pStructuresArray, DWORD cElements, const MARSHALLING_INFO *pInfo, DWORD cbStructureSize, BOOL bSomeBoolean)
◆ GetJobA()
Definition at line 241 of file jobs.c.
242{
247
248 FIXME(
"GetJobA(%p, %lu, %lu, %p, %lu, %p)\n", hPrinter, JobId,
Level, pJob, cbBuf,
pcbNeeded);
249
252
254 {
256 {
257 case 1:
260 {
262 }
265 {
267 }
270 {
272 }
275 {
277 }
280 {
282 }
285 {
287 }
288 break;
289
290 case 2:
293 {
295 }
298 {
300 }
303 {
305 }
308 {
310 }
313 {
315 }
318 {
320 }
323 {
325 }
328 {
330 }
333 {
335 }
337 {
339 }
340 break;
341 }
343 }
346}
WINBOOL WINAPI GetJobW(HANDLE hPrinter, DWORD JobId, DWORD Level, LPBYTE pJob, DWORD cbBuf, LPDWORD pcbNeeded)
◆ GetJobW()
Definition at line 349 of file jobs.c.
350{
353
354 FIXME(
"GetJobW(%p, %lu, %lu, %p, %lu, %p)\n", hPrinter, JobId,
Level, pJob, cbBuf,
pcbNeeded);
355
356 if (!pHandle)
357 {
360 }
361
362
364 {
366 }
368 {
370 ERR(
"_RpcGetJob failed with exception code %lu!\n", dwErrorCode);
371 }
373
375 {
376
379 }
380
384}
DWORD _RpcGetJob(WINSPOOL_PRINTER_HANDLE hPrinter, DWORD JobId, DWORD Level, BYTE *pJob, DWORD cbBuf, DWORD *pcbNeeded)
◆ ScheduleJob()
Definition at line 387 of file jobs.c.
388{
391
392 TRACE(
"ScheduleJob(%p, %lu)\n", hPrinter, dwJobID);
393
394 if (!pHandle)
395 {
398 }
399
400
402 {
404 }
406 {
408 ERR(
"_RpcScheduleJob failed with exception code %lu!\n", dwErrorCode);
409 }
411
414
418}
DWORD _RpcScheduleJob(WINSPOOL_PRINTER_HANDLE hPrinter, DWORD JobId)
Referenced by AbortPrinter(), and test_OpenPrinter_defaults().
◆ SetJobA()
Definition at line 421 of file jobs.c.
422{
426
427 TRACE(
"SetJobA(%p, %lu, %lu, %p, %lu)\n", hPrinter, JobId,
Level, pJobInfo,
Command);
428
429
430
432 {
433 case 0:
435 break;
436 case 1:
437 {
441
451 break;
452 }
453 case 2:
454 {
458
475 break;
476 }
477 case 3:
480 break;
481 default:
482 ERR(
"Level = %d, unsupported!\n",
Level);
485 }
486
488
490 {
491 case 1:
492 {
498 break;
499 }
500 case 2:
501 {
511 break;
512 }
513 }
515
517}
#define HeapFree(x, y, z)
#define memcpy(s1, s2, n)
wstring AsciiToUnicode(const char *AsciiString)
PSECURITY_DESCRIPTOR pSecurityDescriptor
PSECURITY_DESCRIPTOR pSecurityDescriptor
DEVMODEW *WINAPI GdiConvertToDevmodeW(const DEVMODEA *)
WINBOOL WINAPI SetJobW(HANDLE hPrinter, DWORD JobId, DWORD Level, LPBYTE pJob, DWORD Command)
◆ SetJobW()
Definition at line 520 of file jobs.c.
521{
525
526 TRACE(
"SetJobW(%p, %lu, %lu, %p, %lu)\n", hPrinter, JobId,
Level, pJobInfo,
Command);
527
528 if (!pHandle)
529 {
532 }
533
534
537
538
540 {
542 }
544 {
546 ERR(
"_RpcSetJob failed with exception code %lu!\n", dwErrorCode);
547 }
549
553}
DWORD _RpcSetJob(WINSPOOL_PRINTER_HANDLE hPrinter, DWORD JobId, WINSPOOL_JOB_CONTAINER *pJobContainer, DWORD Command)
WINSPOOL_JOB_INFO_1 * Level1
union _WINSPOOL_JOB_CONTAINER::@3441 JobInfo