ReactOS 0.4.16-dev-297-gc569aee
forms.c File Reference
#include "precomp.h"
Include dependency graph for forms.c:

Go to the source code of this file.

Functions

BOOL WINAPI AddFormW (HANDLE hPrinter, DWORD Level, PBYTE pForm)
 
BOOL WINAPI DeleteFormW (HANDLE hPrinter, PWSTR pFormName)
 
BOOL WINAPI EnumFormsW (HANDLE hPrinter, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
 
BOOL WINAPI GetFormW (HANDLE hPrinter, PWSTR pFormName, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded)
 
BOOL WINAPI SetFormW (HANDLE hPrinter, PWSTR pFormName, DWORD Level, PBYTE pForm)
 

Function Documentation

◆ AddFormW()

BOOL WINAPI AddFormW ( HANDLE  hPrinter,
DWORD  Level,
PBYTE  pForm 
)

Definition at line 11 of file forms.c.

12{
14
15 // Sanity checks.
16 if (!pHandle)
17 {
19 return FALSE;
20 }
21
22 return pHandle->pPrintProvider->PrintProvider.fpAddForm(pHandle->hPrinter, Level, pForm);
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
struct _SPOOLSS_PRINTER_HANDLE * PSPOOLSS_PRINTER_HANDLE
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:56

Referenced by _RpcAddForm(), and AddFormA().

◆ DeleteFormW()

BOOL WINAPI DeleteFormW ( HANDLE  hPrinter,
PWSTR  pFormName 
)

Definition at line 26 of file forms.c.

27{
29
30 // Sanity checks.
31 if (!pHandle)
32 {
34 return FALSE;
35 }
36
37 return pHandle->pPrintProvider->PrintProvider.fpDeleteForm(pHandle->hPrinter, pFormName);
38}

Referenced by _RpcDeleteForm(), and DeleteFormA().

◆ EnumFormsW()

BOOL WINAPI EnumFormsW ( HANDLE  hPrinter,
DWORD  Level,
PBYTE  pForm,
DWORD  cbBuf,
PDWORD  pcbNeeded,
PDWORD  pcReturned 
)

Definition at line 41 of file forms.c.

42{
44
45 // Sanity checks.
46 if (!pHandle)
47 {
49 return FALSE;
50 }
51
52 if ( cbBuf && !pForm )
53 {
55 return FALSE;
56 }
57
58 return pHandle->pPrintProvider->PrintProvider.fpEnumForms(pHandle->hPrinter, Level, pForm, cbBuf, pcbNeeded, pcReturned);
59}
_In_ DWORD _Out_ PDWORD pcbNeeded
Definition: winddi.h:3828
#define ERROR_INVALID_USER_BUFFER
Definition: winerror.h:1091

Referenced by _RpcEnumForms(), and EnumFormsA().

◆ GetFormW()

BOOL WINAPI GetFormW ( HANDLE  hPrinter,
PWSTR  pFormName,
DWORD  Level,
PBYTE  pForm,
DWORD  cbBuf,
PDWORD  pcbNeeded 
)

Definition at line 62 of file forms.c.

63{
65
66 // Sanity checks.
67 if (!pHandle)
68 {
70 return FALSE;
71 }
72
73 if ( cbBuf && pForm )
74 {
76 return FALSE;
77 }
78
79 return pHandle->pPrintProvider->PrintProvider.fpGetForm(pHandle->hPrinter, pFormName, Level, pForm, cbBuf, pcbNeeded);
80}

Referenced by _RpcGetForm(), and GetFormA().

◆ SetFormW()

BOOL WINAPI SetFormW ( HANDLE  hPrinter,
PWSTR  pFormName,
DWORD  Level,
PBYTE  pForm 
)

Definition at line 83 of file forms.c.

84{
86
87 // Sanity checks.
88 if (!pHandle)
89 {
91 return FALSE;
92 }
93
94 return pHandle->pPrintProvider->PrintProvider.fpSetForm(pHandle->hPrinter, pFormName, Level, pForm);
95}

Referenced by _RpcSetForm(), and SetFormA().