ReactOS 0.4.15-dev-8222-g9164419
rpcstubs.c File Reference
#include "precomp.h"
Include dependency graph for rpcstubs.c:

Go to the source code of this file.

Functions

DWORD _RpcCreatePrinterIC (WINSPOOL_PRINTER_HANDLE hPrinter, WINSPOOL_GDI_HANDLE *pHandle, WINSPOOL_DEVMODE_CONTAINER *pDevModeContainer)
 
DWORD _RpcPlayGdiScriptOnPrinterIC (WINSPOOL_GDI_HANDLE hPrinterIC, BYTE *pIn, DWORD cIn, BYTE *pOut, DWORD cOut, DWORD ul)
 
DWORD _RpcDeletePrinterIC (WINSPOOL_GDI_HANDLE *phPrinterIC)
 
DWORD _RpcAddPrinterConnection (WINSPOOL_HANDLE pName)
 
DWORD _RpcDeletePrinterConnection (WINSPOOL_HANDLE pName)
 
DWORD _RpcPrinterMessageBox (WINSPOOL_PRINTER_HANDLE hPrinter, DWORD Error, ULONG_PTR hWnd, WCHAR *pText, WCHAR *pCaption, DWORD dwType)
 
DWORD _RpcSetAllocFailCount (VOID)
 
DWORD _RpcClusterSplOpen (VOID)
 
DWORD _RpcClusterSplClose (VOID)
 
DWORD _RpcClusterSplIsAlive (VOID)
 
DWORD _RpcAddPerMachineConnection (WINSPOOL_HANDLE pServer, const WCHAR *pPrinterName, const WCHAR *pPrintServer, const WCHAR *pProvider)
 
DWORD _RpcDeletePerMachineConnection (WINSPOOL_HANDLE pServer, const WCHAR *pPrinterName)
 
DWORD _RpcEnumPerMachineConnections (WINSPOOL_HANDLE pServer, BYTE *pPrinterEnum, DWORD cbBuf, DWORD *pcbNeeded, DWORD *pcReturned)
 
DWORD _RpcSplOpenPrinter (VOID)
 
DWORD _RpcSendRecvBidiData (WINSPOOL_PRINTER_HANDLE hPrinter, const WCHAR *pAction, WINSPOOL_BIDI_REQUEST_CONTAINER *pReqData, WINSPOOL_BIDI_RESPONSE_CONTAINER **ppRespData)
 
DWORD _RpcAddDriverCatalog (VOID)
 

Function Documentation

◆ _RpcAddDriverCatalog()

DWORD _RpcAddDriverCatalog ( VOID  )

Definition at line 131 of file rpcstubs.c.

132{
135}
#define UNIMPLEMENTED
Definition: debug.h:118
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6

Referenced by pointer_default().

◆ _RpcAddPerMachineConnection()

DWORD _RpcAddPerMachineConnection ( WINSPOOL_HANDLE  pServer,
const WCHAR pPrinterName,
const WCHAR pPrintServer,
const WCHAR pProvider 
)

Definition at line 96 of file rpcstubs.c.

97{
100}

Referenced by pointer_default().

◆ _RpcAddPrinterConnection()

DWORD _RpcAddPrinterConnection ( WINSPOOL_HANDLE  pName)

Definition at line 32 of file rpcstubs.c.

33{
36}

Referenced by pointer_default().

◆ _RpcClusterSplClose()

DWORD _RpcClusterSplClose ( VOID  )

Definition at line 82 of file rpcstubs.c.

83{
86}

Referenced by pointer_default().

◆ _RpcClusterSplIsAlive()

DWORD _RpcClusterSplIsAlive ( VOID  )

Definition at line 89 of file rpcstubs.c.

90{
93}

Referenced by pointer_default().

◆ _RpcClusterSplOpen()

DWORD _RpcClusterSplOpen ( VOID  )

Definition at line 75 of file rpcstubs.c.

76{
79}

Referenced by pointer_default().

◆ _RpcCreatePrinterIC()

DWORD _RpcCreatePrinterIC ( WINSPOOL_PRINTER_HANDLE  hPrinter,
WINSPOOL_GDI_HANDLE pHandle,
WINSPOOL_DEVMODE_CONTAINER pDevModeContainer 
)

Definition at line 11 of file rpcstubs.c.

12{
15}

Referenced by pointer_default().

◆ _RpcDeletePerMachineConnection()

DWORD _RpcDeletePerMachineConnection ( WINSPOOL_HANDLE  pServer,
const WCHAR pPrinterName 
)

Definition at line 103 of file rpcstubs.c.

104{
107}

Referenced by pointer_default().

◆ _RpcDeletePrinterConnection()

DWORD _RpcDeletePrinterConnection ( WINSPOOL_HANDLE  pName)

Definition at line 39 of file rpcstubs.c.

40{
43}

Referenced by pointer_default().

◆ _RpcDeletePrinterIC()

DWORD _RpcDeletePrinterIC ( WINSPOOL_GDI_HANDLE phPrinterIC)

Definition at line 25 of file rpcstubs.c.

26{
29}

Referenced by pointer_default().

◆ _RpcEnumPerMachineConnections()

DWORD _RpcEnumPerMachineConnections ( WINSPOOL_HANDLE  pServer,
BYTE pPrinterEnum,
DWORD  cbBuf,
DWORD pcbNeeded,
DWORD pcReturned 
)

Definition at line 110 of file rpcstubs.c.

111{
114}

Referenced by pointer_default().

◆ _RpcPlayGdiScriptOnPrinterIC()

DWORD _RpcPlayGdiScriptOnPrinterIC ( WINSPOOL_GDI_HANDLE  hPrinterIC,
BYTE pIn,
DWORD  cIn,
BYTE pOut,
DWORD  cOut,
DWORD  ul 
)

Definition at line 18 of file rpcstubs.c.

19{
22}

Referenced by pointer_default().

◆ _RpcPrinterMessageBox()

DWORD _RpcPrinterMessageBox ( WINSPOOL_PRINTER_HANDLE  hPrinter,
DWORD  Error,
ULONG_PTR  hWnd,
WCHAR pText,
WCHAR pCaption,
DWORD  dwType 
)

Definition at line 49 of file rpcstubs.c.

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}
HWND hWnd
Definition: settings.c:17
BOOL Error
Definition: chkdsk.c:66
#define ERR(fmt,...)
Definition: debug.h:113
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
unsigned long DWORD
Definition: ntddk_ex.h:95
RPC_STATUS WINAPI RpcRevertToSelf(void)
Definition: rpc_binding.c:1463
RPC_STATUS WINAPI RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle)
Definition: rpc_binding.c:1056
LPCSTR pText
Definition: txtscale.cpp:79
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
DWORD WINAPI PrinterMessageBoxW(HANDLE hPrinter, DWORD Error, HWND hWnd, LPWSTR pText, LPWSTR pCaption, DWORD dwType)
Definition: printers.c:330

Referenced by pointer_default().

◆ _RpcSendRecvBidiData()

DWORD _RpcSendRecvBidiData ( WINSPOOL_PRINTER_HANDLE  hPrinter,
const WCHAR pAction,
WINSPOOL_BIDI_REQUEST_CONTAINER pReqData,
WINSPOOL_BIDI_RESPONSE_CONTAINER **  ppRespData 
)

Definition at line 124 of file rpcstubs.c.

125{
128}

Referenced by pointer_default().

◆ _RpcSetAllocFailCount()

DWORD _RpcSetAllocFailCount ( VOID  )

Definition at line 68 of file rpcstubs.c.

69{
72}

Referenced by pointer_default().

◆ _RpcSplOpenPrinter()

DWORD _RpcSplOpenPrinter ( VOID  )

Definition at line 117 of file rpcstubs.c.

118{
121}

Referenced by pointer_default().