ReactOS  0.4.15-dev-3193-g74513a7
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 {
134  return ERROR_INVALID_FUNCTION;
135 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

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 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().

◆ _RpcAddPrinterConnection()

DWORD _RpcAddPrinterConnection ( WINSPOOL_HANDLE  pName)

Definition at line 32 of file rpcstubs.c.

33 {
36 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().

◆ _RpcClusterSplClose()

DWORD _RpcClusterSplClose ( VOID  )

Definition at line 82 of file rpcstubs.c.

83 {
86 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().

◆ _RpcClusterSplIsAlive()

DWORD _RpcClusterSplIsAlive ( VOID  )

Definition at line 89 of file rpcstubs.c.

90 {
93 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().

◆ _RpcClusterSplOpen()

DWORD _RpcClusterSplOpen ( VOID  )

Definition at line 75 of file rpcstubs.c.

76 {
79 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

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 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().

◆ _RpcDeletePerMachineConnection()

DWORD _RpcDeletePerMachineConnection ( WINSPOOL_HANDLE  pServer,
const WCHAR pPrinterName 
)

Definition at line 103 of file rpcstubs.c.

104 {
106  return ERROR_INVALID_FUNCTION;
107 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().

◆ _RpcDeletePrinterConnection()

DWORD _RpcDeletePrinterConnection ( WINSPOOL_HANDLE  pName)

Definition at line 39 of file rpcstubs.c.

40 {
43 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().

◆ _RpcDeletePrinterIC()

DWORD _RpcDeletePrinterIC ( WINSPOOL_GDI_HANDLE phPrinterIC)

Definition at line 25 of file rpcstubs.c.

26 {
29 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

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 {
113  return ERROR_INVALID_FUNCTION;
114 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

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 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

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 }
LPCSTR pText
Definition: txtscale.cpp:79
#define ERROR_SUCCESS
Definition: deptool.c:10
HWND hWnd
Definition: settings.c:17
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1040
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
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL Error
Definition: chkdsk.c:66
#define ERR(fmt,...)
Definition: debug.h:110
RPC_STATUS WINAPI RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle)
Definition: rpc_binding.c:1052
#define NULL
Definition: types.h:112

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 {
127  return ERROR_INVALID_FUNCTION;
128 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().

◆ _RpcSetAllocFailCount()

DWORD _RpcSetAllocFailCount ( VOID  )

Definition at line 68 of file rpcstubs.c.

69 {
72 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().

◆ _RpcSplOpenPrinter()

DWORD _RpcSplOpenPrinter ( VOID  )

Definition at line 117 of file rpcstubs.c.

118 {
120  return ERROR_INVALID_FUNCTION;
121 }
#define ERROR_INVALID_FUNCTION
Definition: dderror.h:6
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by pointer_default().