ReactOS 0.4.15-dev-7712-gbbbcd8e
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
12{
15}
16
19{
22}
23
26{
29}
30
33{
36}
37
40{
43}
44
45//
46// Forward Dead API....
47//
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
69{
72}
73
76{
79}
80
83{
86}
87
90{
93}
94
96_RpcAddPerMachineConnection(WINSPOOL_HANDLE pServer, const WCHAR* pPrinterName, const WCHAR* pPrintServer, const WCHAR* pProvider)
97{
100}
101
102DWORD
104{
107}
108
109DWORD
110_RpcEnumPerMachineConnections(WINSPOOL_HANDLE pServer, BYTE* pPrinterEnum, DWORD cbBuf, DWORD* pcbNeeded, DWORD* pcReturned)
111{
114}
115
116DWORD
118{
121}
122
123DWORD
125{
128}
129
130DWORD
132{
135}
HWND hWnd
Definition: settings.c:17
BOOL Error
Definition: chkdsk.c:66
#define UNIMPLEMENTED
Definition: debug.h:115
#define ERR(fmt,...)
Definition: debug.h:110
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
unsigned long DWORD
Definition: ntddk_ex.h:95
FxWmiProvider * pProvider
Definition: fxwmiapi.cpp:54
static LPSTR pName
Definition: security.c:75
RPC_STATUS WINAPI RpcRevertToSelf(void)
Definition: rpc_binding.c:1463
RPC_STATUS WINAPI RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle)
Definition: rpc_binding.c:1056
DWORD _RpcSendRecvBidiData(WINSPOOL_PRINTER_HANDLE hPrinter, const WCHAR *pAction, WINSPOOL_BIDI_REQUEST_CONTAINER *pReqData, WINSPOOL_BIDI_RESPONSE_CONTAINER **ppRespData)
Definition: rpcstubs.c:124
DWORD _RpcSetAllocFailCount(VOID)
Definition: rpcstubs.c:68
DWORD _RpcClusterSplIsAlive(VOID)
Definition: rpcstubs.c:89
DWORD _RpcClusterSplOpen(VOID)
Definition: rpcstubs.c:75
DWORD _RpcDeletePerMachineConnection(WINSPOOL_HANDLE pServer, const WCHAR *pPrinterName)
Definition: rpcstubs.c:103
DWORD _RpcAddDriverCatalog(VOID)
Definition: rpcstubs.c:131
DWORD _RpcAddPerMachineConnection(WINSPOOL_HANDLE pServer, const WCHAR *pPrinterName, const WCHAR *pPrintServer, const WCHAR *pProvider)
Definition: rpcstubs.c:96
DWORD _RpcClusterSplClose(VOID)
Definition: rpcstubs.c:82
DWORD _RpcAddPrinterConnection(WINSPOOL_HANDLE pName)
Definition: rpcstubs.c:32
DWORD _RpcEnumPerMachineConnections(WINSPOOL_HANDLE pServer, BYTE *pPrinterEnum, DWORD cbBuf, DWORD *pcbNeeded, DWORD *pcReturned)
Definition: rpcstubs.c:110
DWORD _RpcCreatePrinterIC(WINSPOOL_PRINTER_HANDLE hPrinter, WINSPOOL_GDI_HANDLE *pHandle, WINSPOOL_DEVMODE_CONTAINER *pDevModeContainer)
Definition: rpcstubs.c:11
DWORD _RpcPrinterMessageBox(WINSPOOL_PRINTER_HANDLE hPrinter, DWORD Error, ULONG_PTR hWnd, WCHAR *pText, WCHAR *pCaption, DWORD dwType)
Definition: rpcstubs.c:49
DWORD _RpcDeletePrinterConnection(WINSPOOL_HANDLE pName)
Definition: rpcstubs.c:39
DWORD _RpcDeletePrinterIC(WINSPOOL_GDI_HANDLE *phPrinterIC)
Definition: rpcstubs.c:25
DWORD _RpcSplOpenPrinter(VOID)
Definition: rpcstubs.c:117
DWORD _RpcPlayGdiScriptOnPrinterIC(WINSPOOL_GDI_HANDLE hPrinterIC, BYTE *pIn, DWORD cIn, BYTE *pOut, DWORD cOut, DWORD ul)
Definition: rpcstubs.c:18
LPCSTR pText
Definition: txtscale.cpp:79
uint32_t ULONG_PTR
Definition: typedefs.h:65
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
_In_ DWORD _Out_ PDWORD pcbNeeded
Definition: winddi.h:3828
DWORD WINAPI PrinterMessageBoxW(HANDLE hPrinter, DWORD Error, HWND hWnd, LPWSTR pText, LPWSTR pCaption, DWORD dwType)
Definition: printers.c:330
WCHAR * WINSPOOL_HANDLE
Definition: winspool.idl:15
__wchar_t WCHAR
Definition: xmlstorage.h:180
unsigned char BYTE
Definition: xxhash.c:193