ReactOS  0.4.15-dev-3439-g2693a26
rpcstubs.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Print Spooler Service
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Unimplemented RPC calls
5  * COPYRIGHT: Copyright 2015 Colin Finck (colin@reactos.org)
6  */
7 
8 #include "precomp.h"
9 
10 DWORD
12 {
15 }
16 
17 DWORD
19 {
22 }
23 
24 DWORD
26 {
29 }
30 
31 DWORD
33 {
36 }
37 
38 DWORD
40 {
43 }
44 
45 //
46 // Forward Dead API....
47 //
48 DWORD
50 {
51  DWORD dwErrorCode;
52 
53  dwErrorCode = RpcImpersonateClient(NULL);
54  if (dwErrorCode != ERROR_SUCCESS)
55  {
56  ERR("RpcImpersonateClient failed with error %lu!\n", dwErrorCode);
57  return dwErrorCode;
58  }
59 
60  PrinterMessageBoxW(hPrinter, Error, (HWND)hWnd, pText, pCaption, dwType);
61  dwErrorCode = GetLastError();
62 
64  return dwErrorCode;
65 }
66 
67 DWORD
69 {
72 }
73 
74 DWORD
76 {
79 }
80 
81 DWORD
83 {
86 }
87 
88 DWORD
90 {
93 }
94 
95 DWORD
96 _RpcAddPerMachineConnection(WINSPOOL_HANDLE pServer, const WCHAR* pPrinterName, const WCHAR* pPrintServer, const WCHAR* pProvider)
97 {
100 }
101 
102 DWORD
104 {
106  return ERROR_INVALID_FUNCTION;
107 }
108 
109 DWORD
110 _RpcEnumPerMachineConnections(WINSPOOL_HANDLE pServer, BYTE* pPrinterEnum, DWORD cbBuf, DWORD* pcbNeeded, DWORD* pcReturned)
111 {
113  return ERROR_INVALID_FUNCTION;
114 }
115 
116 DWORD
118 {
120  return ERROR_INVALID_FUNCTION;
121 }
122 
123 DWORD
125 {
127  return ERROR_INVALID_FUNCTION;
128 }
129 
130 DWORD
132 {
134  return ERROR_INVALID_FUNCTION;
135 }
LPCSTR pText
Definition: txtscale.cpp:79
#define ERROR_SUCCESS
Definition: deptool.c:10
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
FxWmiProvider * pProvider
Definition: fxwmiapi.cpp:54
DWORD _RpcAddPerMachineConnection(WINSPOOL_HANDLE pServer, const WCHAR *pPrinterName, const WCHAR *pPrintServer, const WCHAR *pProvider)
Definition: rpcstubs.c:96
HWND hWnd
Definition: settings.c:17
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1040
DWORD _RpcAddDriverCatalog(VOID)
Definition: rpcstubs.c:131
DWORD _RpcSetAllocFailCount(VOID)
Definition: rpcstubs.c:68
DWORD _RpcDeletePerMachineConnection(WINSPOOL_HANDLE pServer, const WCHAR *pPrinterName)
Definition: rpcstubs.c:103
uint32_t ULONG_PTR
Definition: typedefs.h:65
DWORD _RpcAddPrinterConnection(WINSPOOL_HANDLE pName)
Definition: rpcstubs.c:32
DWORD _RpcPrinterMessageBox(WINSPOOL_PRINTER_HANDLE hPrinter, DWORD Error, ULONG_PTR hWnd, WCHAR *pText, WCHAR *pCaption, DWORD dwType)
Definition: rpcstubs.c:49
DWORD _RpcDeletePrinterIC(WINSPOOL_GDI_HANDLE *phPrinterIC)
Definition: rpcstubs.c:25
RPC_STATUS WINAPI RpcRevertToSelf(void)
Definition: rpc_binding.c:1459
DWORD WINAPI PrinterMessageBoxW(HANDLE hPrinter, DWORD Error, HWND hWnd, LPWSTR pText, LPWSTR pCaption, DWORD dwType)
Definition: printers.c:330
DWORD _RpcPlayGdiScriptOnPrinterIC(WINSPOOL_GDI_HANDLE hPrinterIC, BYTE *pIn, DWORD cIn, BYTE *pOut, DWORD cOut, DWORD ul)
Definition: rpcstubs.c:18
static LPSTR pName
Definition: security.c:75
__wchar_t WCHAR
Definition: xmlstorage.h:180
DWORD _RpcClusterSplIsAlive(VOID)
Definition: rpcstubs.c:89
DWORD _RpcSplOpenPrinter(VOID)
Definition: rpcstubs.c:117
DWORD _RpcSendRecvBidiData(WINSPOOL_PRINTER_HANDLE hPrinter, const WCHAR *pAction, WINSPOOL_BIDI_REQUEST_CONTAINER *pReqData, WINSPOOL_BIDI_RESPONSE_CONTAINER **ppRespData)
Definition: rpcstubs.c:124
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL Error
Definition: chkdsk.c:66
DWORD _RpcEnumPerMachineConnections(WINSPOOL_HANDLE pServer, BYTE *pPrinterEnum, DWORD cbBuf, DWORD *pcbNeeded, DWORD *pcReturned)
Definition: rpcstubs.c:110
DWORD _RpcClusterSplClose(VOID)
Definition: rpcstubs.c:82
unsigned char BYTE
Definition: xxhash.c:193
#define ERR(fmt,...)
Definition: debug.h:110
_In_ DWORD _Out_ PDWORD pcbNeeded
Definition: winddi.h:3827
DWORD _RpcCreatePrinterIC(WINSPOOL_PRINTER_HANDLE hPrinter, WINSPOOL_GDI_HANDLE *pHandle, WINSPOOL_DEVMODE_CONTAINER *pDevModeContainer)
Definition: rpcstubs.c:11
DWORD _RpcDeletePrinterConnection(WINSPOOL_HANDLE pName)
Definition: rpcstubs.c:39
RPC_STATUS WINAPI RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle)
Definition: rpc_binding.c:1052
#define NULL
Definition: types.h:112
#define UNIMPLEMENTED
Definition: debug.h:115
WCHAR * WINSPOOL_HANDLE
Definition: winspool.idl:15
DWORD _RpcClusterSplOpen(VOID)
Definition: rpcstubs.c:75