Go to the source code of this file.
|
BOOL WINAPI | AddFormA (HANDLE hPrinter, DWORD Level, PBYTE pForm) |
|
BOOL WINAPI | AddFormW (HANDLE hPrinter, DWORD Level, PBYTE pForm) |
|
BOOL WINAPI | DeleteFormA (HANDLE hPrinter, PSTR pFormName) |
|
BOOL WINAPI | DeleteFormW (HANDLE hPrinter, PWSTR pFormName) |
|
BOOL WINAPI | EnumFormsA (HANDLE hPrinter, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned) |
|
BOOL WINAPI | EnumFormsW (HANDLE hPrinter, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned) |
|
BOOL WINAPI | GetFormA (HANDLE hPrinter, PSTR pFormName, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded) |
|
BOOL WINAPI | GetFormW (HANDLE hPrinter, PWSTR pFormName, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded) |
|
BOOL WINAPI | SetFormA (HANDLE hPrinter, PSTR pFormName, DWORD Level, PBYTE pForm) |
|
BOOL WINAPI | SetFormW (HANDLE hPrinter, PWSTR pFormName, DWORD Level, PBYTE pForm) |
|
◆ AddFormA()
Definition at line 12 of file forms.c.
13{
18
20
21 TRACE(
"AddFormA(%p, %lu, %p)\n", hPrinter,
Level, pForm);
22
24 {
25 ERR(
"Level = %d, unsupported!\n",
Level);
28 }
29
30 if (!pfi2A)
31 {
34 }
35
37
39 {
43 }
44
48
50 {
52 {
56 }
57
59 {
63 }
64
66 {
70 }
74 }
75
77
82
84}
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
#define MultiByteToWideChar
#define ERROR_INVALID_LEVEL
struct _FORM_INFO_2A * PFORM_INFO_2A
WINBOOL WINAPI AddFormW(HANDLE hPrinter, DWORD Level, LPBYTE pForm)
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
◆ AddFormW()
Definition at line 87 of file forms.c.
88{
92
93 TRACE(
"AddFormW(%p, %lu, %p)\n", hPrinter,
Level, pForm);
94
95
96 if (!pHandle)
97 {
100 }
101
103 {
104 ERR(
"Level = %d, unsupported!\n",
Level);
107 }
108
111
112
114 {
116 }
118 {
120 ERR(
"_RpcAddForm failed with exception code %lu!\n", dwErrorCode);
121 }
123
126}
#define ERROR_INVALID_HANDLE
#define EXCEPTION_EXECUTE_HANDLER
#define RpcExceptionCode()
struct _SPOOLER_HANDLE * PSPOOLER_HANDLE
◆ DeleteFormA()
Definition at line 129 of file forms.c.
130{
133
134 TRACE(
"DeleteFormA(%p, %s)\n", hPrinter, pFormName);
135
137
139
141
142 return Ret;
143}
wstring AsciiToUnicode(const char *AsciiString)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
WINBOOL WINAPI DeleteFormW(HANDLE hPrinter, LPWSTR pFormName)
◆ DeleteFormW()
Definition at line 146 of file forms.c.
147{
150
151 TRACE(
"DeleteFormW(%p, %S)\n", hPrinter, pFormName);
152
153
154 if (!pHandle)
155 {
158 }
159
160
162 {
164 }
166 {
168 ERR(
"_RpcDeleteForm failed with exception code %lu!\n", dwErrorCode);
169 }
171
174}
◆ EnumFormsA()
Definition at line 177 of file forms.c.
178{
182
183 TRACE(
"EnumFormsA(%p, %lu, %p, %lu, %p, %p)\n", hPrinter,
Level, pForm, cbBuf,
pcbNeeded, pcReturned);
184
186 {
187 for (
i = 0;
i < *pcReturned;
i++ )
188 {
190 {
191 case 2:
194 {
196 }
199 {
201 }
204 {
206 }
209 {
211 }
212 break;
213 case 1:
216 {
218 }
219 }
220 }
222 }
225}
static const WCHAR Cleanup[]
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
DWORD UnicodeToAnsiInPlace(PWSTR pwszField)
_In_ DWORD _Out_ PDWORD pcbNeeded
WINBOOL WINAPI EnumFormsW(HANDLE hPrinter, DWORD Level, LPBYTE pForm, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)
struct _FORM_INFO_2W * PFORM_INFO_2W
struct _FORM_INFO_1W * PFORM_INFO_1W
◆ EnumFormsW()
Definition at line 228 of file forms.c.
229{
232
233 TRACE(
"EnumFormsW(%p, %lu, %p, %lu, %p, %p)\n", hPrinter,
Level, pForm, cbBuf,
pcbNeeded, pcReturned);
234
235
236 if (!pHandle)
237 {
240 }
241
243 {
244 ERR(
"Level = %d, unsupported!\n",
Level);
247 }
248
249
251 {
253 }
255 {
257 ERR(
"_RpcEnumForms failed with exception code %lu!\n", dwErrorCode);
258 }
260
262 {
263
266 }
267
271}
BOOL WINAPI MarshallUpStructuresArray(DWORD cbSize, PVOID pStructuresArray, DWORD cElements, const MARSHALLING_INFO *pInfo, DWORD cbStructureSize, BOOL bSomeBoolean)
◆ GetFormA()
Definition at line 274 of file forms.c.
275{
280
281 TRACE(
"GetFormA(%p, %s, %lu, %p, %lu, %p)\n", hPrinter, pFormName,
Level, pForm, cbBuf,
pcbNeeded);
282
283 if (pFormName)
284 {
288 }
289
291 {
293 {
294 case 2:
297 {
299 }
302 {
304 }
307 {
309 }
312 {
314 }
315 break;
316 case 1:
319 {
321 }
322 }
323 }
327}
WINBOOL WINAPI GetFormW(HANDLE hPrinter, LPWSTR pFormName, DWORD Level, LPBYTE pForm, DWORD cbBuf, LPDWORD pcbNeeded)
◆ GetFormW()
Definition at line 330 of file forms.c.
331{
334
335 TRACE(
"GetFormW(%p, %S, %lu, %p, %lu, %p)\n", hPrinter, pFormName,
Level, pForm, cbBuf,
pcbNeeded);
336
337
338 if (!pHandle)
339 {
342 }
343
344
346 {
347 ERR(
"Level = %d, unsupported!\n",
Level);
350 }
351
352 if (cbBuf && pForm)
354
355
357 {
359 }
361 {
363 ERR(
"_RpcGetForm failed with exception code %lu!\n", dwErrorCode);
364 }
366
368 {
369
372 }
373
377}
BOOL WINAPI MarshallUpStructure(DWORD cbSize, PVOID pStructure, const MARSHALLING_INFO *pInfo, DWORD cbStructureSize, BOOL bSomeBoolean)
◆ SetFormA()
Definition at line 380 of file forms.c.
381{
387
389
390 TRACE(
"SetFormA(%p, %s, %lu, %p)\n", hPrinter, pFormName,
Level, pForm);
391
393 {
394 ERR(
"Level = %d, unsupported!\n",
Level);
397 }
398
399 if (!pfi2A)
400 {
403 }
404
405 if (pFormName)
406 {
410 }
411
413
415 {
419 }
420
424
426 {
428 {
432 }
433
435 {
439 }
440
442 {
446 }
450 }
451
453
459
461}
WINBOOL WINAPI SetFormW(HANDLE hPrinter, LPWSTR pFormName, DWORD Level, LPBYTE pForm)
◆ SetFormW()
Definition at line 464 of file forms.c.
465{
469
470 TRACE(
"SetFormW(%p, %S, %lu, %p)\n", hPrinter, pFormName,
Level, pForm);
471
472
473 if (!pHandle)
474 {
475 ERR(
"Level = %d, unsupported!\n",
Level);
478 }
479
482
483
485 {
487 }
489 {
491 }
493
496}