ReactOS  0.4.13-dev-100-gc8611ae
rpcproxy.h File Reference
#include <basetsd.h>
#include <guiddef.h>
#include <rpc.h>
#include <rpcndr.h>
Include dependency graph for rpcproxy.h:

Go to the source code of this file.

Classes

struct  tagProxyFileInfo
 
struct  tagCInterfaceProxyHeader
 
struct  tagCInterfaceProxyVtbl
 
struct  tagCInterfaceStubHeader
 
struct  tagCInterfaceStubVtbl
 
struct  tagCStdStubBuffer
 
struct  tagCStdPSFactoryBuffer
 

Macros

#define __RPCPROXY_H_VERSION__   ( 399 )
 
#define __midl_proxy
 
#define CINTERFACE_PROXY_VTABLE(n)
 
#define STUB_FORWARDING_FUNCTION   NdrStubForwardingFunction
 
#define CStdStubBuffer_DELEGATING_METHODS   0, 0, CStdStubBuffer2_Release, 0, 0, 0, 0, 0, 0, 0
 
#define CStdStubBuffer_METHODS
 
#define CSTDSTUBBUFFERRELEASE(pFactory)
 
#define CSTDSTUBBUFFER2RELEASE(pFactory)
 
#define IID_GENERIC_CHECK_IID(name, pIID, index)   memcmp(pIID, name##_ProxyVtblList[index]->header.piid, sizeof(IID))
 
#define IID_BS_LOOKUP_SETUP   int c;
 
#define IID_BS_LOOKUP_INITIAL_TEST(name, sz, split)
 
#define IID_BS_LOOKUP_NEXT_TEST(name, split)
 
#define IID_BS_LOOKUP_RETURN_RESULT(name, sz, index)
 
#define EXTERN_PROXY_FILE(proxy)   EXTERN_C const ProxyFileInfo proxy##_ProxyFileInfo DECLSPEC_HIDDEN;
 
#define PROXYFILE_LIST_START
 
#define REFERENCE_PROXY_FILE(proxy)   & proxy##_ProxyFileInfo
 
#define PROXYFILE_LIST_END
 
#define CLSID_PSFACTORYBUFFER
 
#define GET_DLL_CLSID
 
#define DLLREGISTERSERVER_ENTRY   DllRegisterServer
 
#define DLLUNREGISTERSERVER_ENTRY   DllUnregisterServer
 
#define DLLMAIN_ENTRY   DllMain
 
#define DLLGETCLASSOBJECT_ENTRY   DllGetClassObject
 
#define DLLCANUNLOADNOW_ENTRY   DllCanUnloadNow
 
#define WINE_DO_REGISTER_DLL(pfl, clsid)   return NdrDllRegisterProxy( hProxyDll, (pfl), (clsid) )
 
#define WINE_DO_UNREGISTER_DLL(pfl, clsid)   return NdrDllUnregisterProxy( hProxyDll, (pfl), (clsid) )
 
#define DLLDATA_GETPROXYDLLINFO(pfl, rclsid)
 
#define DLLGETCLASSOBJECTROUTINE(pfl, factory_clsid, factory)
 
#define DLLCANUNLOADNOW(factory)
 
#define REGISTER_PROXY_DLL_ROUTINES(pfl, factory_clsid)
 
#define DLLREGISTRY_ROUTINES(pfl, factory_clsid)
 
#define DLLDATA_ROUTINES(pfl, factory_clsid)
 

Typedefs

typedef struct tagCInterfaceStubVtblPCInterfaceStubVtblList
 
typedef struct tagCInterfaceProxyVtblPCInterfaceProxyVtblList
 
typedef const charPCInterfaceName
 
typedef int __stdcall IIDLookupRtn(const IID *pIID, int *pIndex)
 
typedef IIDLookupRtnPIIDLookup
 
typedef struct tagProxyFileInfo ProxyFileInfo
 
typedef ProxyFileInfo ExtendedProxyFileInfo
 
typedef struct tagCInterfaceProxyHeader CInterfaceProxyHeader
 
typedef struct tagCInterfaceProxyVtbl CInterfaceProxyVtbl
 
typedef void(__RPC_STUBPRPC_STUB_FUNCTION) (IRpcStubBuffer *This, IRpcChannelBuffer *_pRpcChannelBuffer, PRPC_MESSAGE _pRpcMessage, DWORD *pdwStubPhase)
 
typedef struct tagCInterfaceStubHeader CInterfaceStubHeader
 
typedef struct tagCInterfaceStubVtbl CInterfaceStubVtbl
 
typedef struct tagCStdStubBuffer CStdStubBuffer
 
typedef struct tagCStdPSFactoryBuffer CStdPSFactoryBuffer
 

Functions

ULONG STDMETHODCALLTYPE CStdStubBuffer2_Release (IRpcStubBuffer *This) DECLSPEC_HIDDEN
 
ULONG STDMETHODCALLTYPE NdrCStdStubBuffer2_Release (IRpcStubBuffer *This, IPSFactoryBuffer *pPSF)
 
HRESULT WINAPI CStdStubBuffer_QueryInterface (IRpcStubBuffer *This, REFIID riid, void **ppvObject)
 
ULONG WINAPI CStdStubBuffer_AddRef (IRpcStubBuffer *This)
 
ULONG WINAPI CStdStubBuffer_Release (IRpcStubBuffer *This) DECLSPEC_HIDDEN
 
ULONG WINAPI NdrCStdStubBuffer_Release (IRpcStubBuffer *This, IPSFactoryBuffer *pPSF)
 
HRESULT WINAPI CStdStubBuffer_Connect (IRpcStubBuffer *This, IUnknown *pUnkServer)
 
void WINAPI CStdStubBuffer_Disconnect (IRpcStubBuffer *This)
 
HRESULT WINAPI CStdStubBuffer_Invoke (IRpcStubBuffer *This, RPCOLEMESSAGE *pRpcMsg, IRpcChannelBuffer *pRpcChannelBuffer)
 
IRpcStubBuffer *WINAPI CStdStubBuffer_IsIIDSupported (IRpcStubBuffer *This, REFIID riid)
 
ULONG WINAPI CStdStubBuffer_CountRefs (IRpcStubBuffer *This)
 
HRESULT WINAPI CStdStubBuffer_DebugServerQueryInterface (IRpcStubBuffer *This, void **ppv)
 
void WINAPI CStdStubBuffer_DebugServerRelease (IRpcStubBuffer *This, void *pv)
 
RPCRTAPI void RPC_ENTRY NdrProxyInitialize (void *This, PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDescriptor, unsigned int ProcNum)
 
RPCRTAPI void RPC_ENTRY NdrProxyGetBuffer (void *This, PMIDL_STUB_MESSAGE pStubMsg)
 
RPCRTAPI void RPC_ENTRY NdrProxySendReceive (void *This, PMIDL_STUB_MESSAGE pStubMsg)
 
RPCRTAPI void RPC_ENTRY NdrProxyFreeBuffer (void *This, PMIDL_STUB_MESSAGE pStubMsg)
 
RPCRTAPI HRESULT RPC_ENTRY NdrProxyErrorHandler (DWORD dwExceptionCode)
 
RPCRTAPI void RPC_ENTRY NdrStubInitialize (PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDescriptor, IRpcChannelBuffer *pRpcChannelBuffer)
 
RPCRTAPI void RPC_ENTRY NdrStubInitializePartial (PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDescriptor, IRpcChannelBuffer *pRpcChannelBuffer, ULONG RequestedBufferSize)
 
void __RPC_STUB NdrStubForwardingFunction (IRpcStubBuffer *This, IRpcChannelBuffer *pChannel, PRPC_MESSAGE pMsg, DWORD *pdwStubPhase)
 
RPCRTAPI void RPC_ENTRY NdrStubGetBuffer (IRpcStubBuffer *This, IRpcChannelBuffer *pRpcChannelBuffer, PMIDL_STUB_MESSAGE pStubMsg)
 
RPCRTAPI HRESULT RPC_ENTRY NdrStubErrorHandler (DWORD dwExceptionCode)
 
RPCRTAPI HRESULT RPC_ENTRY NdrDllGetClassObject (REFCLSID rclsid, REFIID riid, void **ppv, const ProxyFileInfo **pProxyFileList, const CLSID *pclsid, CStdPSFactoryBuffer *pPSFactoryBuffer)
 
RPCRTAPI HRESULT RPC_ENTRY NdrDllCanUnloadNow (CStdPSFactoryBuffer *pPSFactoryBuffer)
 
RPCRTAPI HRESULT RPC_ENTRY NdrDllRegisterProxy (HMODULE hDll, const ProxyFileInfo **pProxyFileList, const CLSID *pclsid)
 
RPCRTAPI HRESULT RPC_ENTRY NdrDllUnregisterProxy (HMODULE hDll, const ProxyFileInfo **pProxyFileList, const CLSID *pclsid)
 
HRESULT __wine_register_resources (HMODULE module) DECLSPEC_HIDDEN
 
HRESULT __wine_unregister_resources (HMODULE module) DECLSPEC_HIDDEN
 

Macro Definition Documentation

◆ __midl_proxy

#define __midl_proxy

Definition at line 27 of file rpcproxy.h.

◆ __RPCPROXY_H_VERSION__

#define __RPCPROXY_H_VERSION__   ( 399 )

Definition at line 21 of file rpcproxy.h.

◆ CINTERFACE_PROXY_VTABLE

#define CINTERFACE_PROXY_VTABLE (   n)
Value:
struct \
{ \
CInterfaceProxyHeader header; \
void *Vtbl[n]; \
}
GLdouble n
Definition: glext.h:7729
struct CFHEADER header
Definition: fdi.c:109

Definition at line 71 of file rpcproxy.h.

◆ CLSID_PSFACTORYBUFFER

#define CLSID_PSFACTORYBUFFER

Definition at line 264 of file rpcproxy.h.

◆ CSTDSTUBBUFFER2RELEASE

#define CSTDSTUBBUFFER2RELEASE (   pFactory)

Definition at line 218 of file rpcproxy.h.

◆ CStdStubBuffer_DELEGATING_METHODS

#define CStdStubBuffer_DELEGATING_METHODS   0, 0, CStdStubBuffer2_Release, 0, 0, 0, 0, 0, 0, 0

Definition at line 131 of file rpcproxy.h.

◆ CStdStubBuffer_METHODS

#define CStdStubBuffer_METHODS
Value:
CStdStubBuffer_AddRef, \
CStdStubBuffer_Release, \
CStdStubBuffer_Connect, \
CStdStubBuffer_Disconnect, \
CStdStubBuffer_Invoke, \
CStdStubBuffer_IsIIDSupported, \
CStdStubBuffer_CountRefs, \
CStdStubBuffer_DebugServerQueryInterface, \
CStdStubBuffer_DebugServerRelease
HRESULT WINAPI CStdStubBuffer_QueryInterface(IRpcStubBuffer *This, REFIID riid, void **ppvObject)

Definition at line 157 of file rpcproxy.h.

◆ CSTDSTUBBUFFERRELEASE

#define CSTDSTUBBUFFERRELEASE (   pFactory)
Value:
#define WINAPI
Definition: msvc.h:8
unsigned int ULONG
Definition: retypes.h:1
ULONG WINAPI NdrCStdStubBuffer_Release(IRpcStubBuffer *This, IPSFactoryBuffer *pPSF)
ULONG WINAPI CStdStubBuffer_Release(IRpcStubBuffer *This) DECLSPEC_HIDDEN

Definition at line 209 of file rpcproxy.h.

◆ DLLCANUNLOADNOW

#define DLLCANUNLOADNOW (   factory)
Value:
HRESULT WINAPI DLLCANUNLOADNOW_ENTRY(void) \
{ \
}
#define DLLCANUNLOADNOW_ENTRY
Definition: rpcproxy.h:288
RPCRTAPI HRESULT RPC_ENTRY NdrDllCanUnloadNow(CStdPSFactoryBuffer *pPSFactoryBuffer)
Definition: cpsf.c:216
Definition: main.c:440
LONG HRESULT
Definition: typedefs.h:77
#define WINAPI
Definition: msvc.h:8
#define DECLSPEC_HIDDEN
Definition: precomp.h:8

Definition at line 319 of file rpcproxy.h.

◆ DLLCANUNLOADNOW_ENTRY

#define DLLCANUNLOADNOW_ENTRY   DllCanUnloadNow

Definition at line 288 of file rpcproxy.h.

◆ DLLDATA_GETPROXYDLLINFO

#define DLLDATA_GETPROXYDLLINFO (   pfl,
  rclsid 
)
Value:
void RPC_ENTRY GetProxyDllInfo(const ProxyFileInfo ***ppProxyFileInfo, \
const CLSID **ppClsid) DECLSPEC_HIDDEN; \
void RPC_ENTRY GetProxyDllInfo(const ProxyFileInfo ***ppProxyFileInfo, \
const CLSID **ppClsid) \
{ \
*ppProxyFileInfo = (pfl); \
*ppClsid = (rclsid); \
}
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
#define RPC_ENTRY
Definition: rpc.h:67

Definition at line 300 of file rpcproxy.h.

◆ DLLDATA_ROUTINES

#define DLLDATA_ROUTINES (   pfl,
  factory_clsid 
)
Value:
CLSID_PSFACTORYBUFFER \
CStdPSFactoryBuffer DECLSPEC_HIDDEN gPFactory = { NULL, 0, NULL, 0 }; \
DLLDATA_GETPROXYDLLINFO(pfl, factory_clsid) \
DLLGETCLASSOBJECTROUTINE(pfl, factory_clsid, &gPFactory) \
DLLCANUNLOADNOW(&gPFactory) \
CSTDSTUBBUFFERRELEASE(&gPFactory) \
CSTDSTUBBUFFER2RELEASE(&gPFactory) \
DLLREGISTRY_ROUTINES(pfl, factory_clsid)
smooth NULL
Definition: ftsmooth.c:416
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
CStdPSFactoryBuffer gPFactory

Definition at line 360 of file rpcproxy.h.

◆ DLLGETCLASSOBJECT_ENTRY

#define DLLGETCLASSOBJECT_ENTRY   DllGetClassObject

Definition at line 287 of file rpcproxy.h.

◆ DLLGETCLASSOBJECTROUTINE

#define DLLGETCLASSOBJECTROUTINE (   pfl,
  factory_clsid,
  factory 
)
Value:
void **ppv) \
{ \
return NdrDllGetClassObject(rclsid, riid, ppv, (pfl), \
(factory_clsid), factory); \
}
#define REFIID
Definition: guiddef.h:113
REFIID riid
Definition: precomp.h:44
#define REFCLSID
Definition: guiddef.h:112
REFIID LPVOID * ppv
Definition: atlbase.h:39
Definition: main.c:440
LONG HRESULT
Definition: typedefs.h:77
#define WINAPI
Definition: msvc.h:8
#define DLLGETCLASSOBJECT_ENTRY
Definition: rpcproxy.h:287
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
RPCRTAPI HRESULT RPC_ENTRY NdrDllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv, const ProxyFileInfo **pProxyFileList, const CLSID *pclsid, CStdPSFactoryBuffer *pPSFactoryBuffer)

Definition at line 310 of file rpcproxy.h.

◆ DLLMAIN_ENTRY

#define DLLMAIN_ENTRY   DllMain

Definition at line 286 of file rpcproxy.h.

◆ DLLREGISTERSERVER_ENTRY

#define DLLREGISTERSERVER_ENTRY   DllRegisterServer

Definition at line 284 of file rpcproxy.h.

◆ DLLREGISTRY_ROUTINES

#define DLLREGISTRY_ROUTINES (   pfl,
  factory_clsid 
)

Definition at line 357 of file rpcproxy.h.

◆ DLLUNREGISTERSERVER_ENTRY

#define DLLUNREGISTERSERVER_ENTRY   DllUnregisterServer

Definition at line 285 of file rpcproxy.h.

◆ EXTERN_PROXY_FILE

#define EXTERN_PROXY_FILE (   proxy)    EXTERN_C const ProxyFileInfo proxy##_ProxyFileInfo DECLSPEC_HIDDEN;

Definition at line 238 of file rpcproxy.h.

◆ GET_DLL_CLSID

#define GET_DLL_CLSID
Value:
aProxyFileList[0]->pStubVtblList[0]->header.piid : NULL)
CInterfaceStubHeader header
Definition: rpcproxy.h:104
smooth NULL
Definition: ftsmooth.c:416
const IID * piid
Definition: rpcproxy.h:96
const PCInterfaceStubVtblList * pStubVtblList
Definition: rpcproxy.h:49
const ProxyFileInfo * aProxyFileList

Definition at line 269 of file rpcproxy.h.

◆ IID_BS_LOOKUP_INITIAL_TEST

#define IID_BS_LOOKUP_INITIAL_TEST (   name,
  sz,
  split 
)

Definition at line 231 of file rpcproxy.h.

◆ IID_BS_LOOKUP_NEXT_TEST

#define IID_BS_LOOKUP_NEXT_TEST (   name,
  split 
)

Definition at line 232 of file rpcproxy.h.

◆ IID_BS_LOOKUP_RETURN_RESULT

#define IID_BS_LOOKUP_RETURN_RESULT (   name,
  sz,
  index 
)
Value:
for (c=0; c<sz; c++) if (!name##_CHECK_IID(c)) { (index)=c; return 1; } \
return 0;
const GLubyte * c
Definition: glext.h:8905
#define index(s, c)
Definition: various.h:29
Definition: name.c:36

Definition at line 233 of file rpcproxy.h.

◆ IID_BS_LOOKUP_SETUP

#define IID_BS_LOOKUP_SETUP   int c;

Definition at line 229 of file rpcproxy.h.

◆ IID_GENERIC_CHECK_IID

#define IID_GENERIC_CHECK_IID (   name,
  pIID,
  index 
)    memcmp(pIID, name##_ProxyVtblList[index]->header.piid, sizeof(IID))

Definition at line 221 of file rpcproxy.h.

◆ PROXYFILE_LIST_END

#define PROXYFILE_LIST_END
Value:
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 248 of file rpcproxy.h.

◆ PROXYFILE_LIST_START

#define PROXYFILE_LIST_START
Value:
{
const ProxyFileInfo * aProxyFileList
#define DECLSPEC_HIDDEN
Definition: precomp.h:8

Definition at line 241 of file rpcproxy.h.

◆ REFERENCE_PROXY_FILE

#define REFERENCE_PROXY_FILE (   proxy)    & proxy##_ProxyFileInfo

Definition at line 245 of file rpcproxy.h.

◆ REGISTER_PROXY_DLL_ROUTINES

#define REGISTER_PROXY_DLL_ROUTINES (   pfl,
  factory_clsid 
)
Value:
\
BOOL WINAPI DLLMAIN_ENTRY(HINSTANCE hinstDLL, DWORD fdwReason, \
{ \
if (fdwReason == DLL_PROCESS_ATTACH) \
{ \
DisableThreadLibraryCalls(hinstDLL); \
hProxyDll = hinstDLL; \
} \
return TRUE; \
} \
\
{ \
WINE_DO_REGISTER_DLL( (pfl), (factory_clsid) ); \
} \
\
{ \
WINE_DO_UNREGISTER_DLL( (pfl), (factory_clsid) ); \
}
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
static IN DWORD IN LPVOID lpvReserved
#define DLLUNREGISTERSERVER_ENTRY
Definition: rpcproxy.h:285
#define DLLMAIN_ENTRY
Definition: rpcproxy.h:286
smooth NULL
Definition: ftsmooth.c:416
#define DLLREGISTERSERVER_ENTRY
Definition: rpcproxy.h:284
#define WINAPI
Definition: msvc.h:8
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DECLSPEC_HIDDEN
Definition: precomp.h:8

Definition at line 326 of file rpcproxy.h.

◆ STUB_FORWARDING_FUNCTION

#define STUB_FORWARDING_FUNCTION   NdrStubForwardingFunction

Definition at line 126 of file rpcproxy.h.

◆ WINE_DO_REGISTER_DLL

#define WINE_DO_REGISTER_DLL (   pfl,
  clsid 
)    return NdrDllRegisterProxy( hProxyDll, (pfl), (clsid) )

Definition at line 295 of file rpcproxy.h.

◆ WINE_DO_UNREGISTER_DLL

#define WINE_DO_UNREGISTER_DLL (   pfl,
  clsid 
)    return NdrDllUnregisterProxy( hProxyDll, (pfl), (clsid) )

Definition at line 296 of file rpcproxy.h.

Typedef Documentation

◆ CInterfaceProxyHeader

◆ CInterfaceProxyVtbl

◆ CInterfaceStubHeader

◆ CInterfaceStubVtbl

◆ CStdPSFactoryBuffer

◆ CStdStubBuffer

◆ ExtendedProxyFileInfo

Definition at line 61 of file rpcproxy.h.

◆ IIDLookupRtn

typedef int __stdcall IIDLookupRtn(const IID *pIID, int *pIndex)

Definition at line 43 of file rpcproxy.h.

◆ PCInterfaceName

Definition at line 42 of file rpcproxy.h.

◆ PCInterfaceProxyVtblList

Definition at line 41 of file rpcproxy.h.

◆ PCInterfaceStubVtblList

Definition at line 40 of file rpcproxy.h.

◆ PIIDLookup

Definition at line 44 of file rpcproxy.h.

◆ ProxyFileInfo

◆ PRPC_STUB_FUNCTION

typedef void(__RPC_STUB * PRPC_STUB_FUNCTION) (IRpcStubBuffer *This, IRpcChannelBuffer *_pRpcChannelBuffer, PRPC_MESSAGE _pRpcMessage, DWORD *pdwStubPhase)

Definition at line 88 of file rpcproxy.h.

Function Documentation

◆ __wine_register_resources()

HRESULT __wine_register_resources ( HMODULE  module)

Definition at line 98 of file register.c.

99 {
100  struct reg_info info;
101 
102  info.registrar = NULL;
103  info.do_register = TRUE;
104  info.result = S_OK;
106  if (info.registrar) IRegistrar_Release( info.registrar );
107  return info.result;
108 }
#define TRUE
Definition: types.h:120
static BOOL CALLBACK register_resource(HMODULE module, LPCWSTR type, LPWSTR name, LONG_PTR arg)
Definition: register.c:70
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR regtypeW[]
Definition: register.c:34
BOOL WINAPI EnumResourceNamesW(HMODULE hmod, LPCWSTR type, ENUMRESNAMEPROCW lpfun, LONG_PTR lparam)
Definition: res.c:358
#define S_OK
Definition: intsafe.h:59
__int3264 LONG_PTR
Definition: mstsclib_h.h:276

Referenced by DllRegisterServer(), and RegisterTypeLibraries().

◆ __wine_unregister_resources()

HRESULT __wine_unregister_resources ( HMODULE  module)

Definition at line 110 of file register.c.

111 {
112  struct reg_info info;
113 
114  info.registrar = NULL;
115  info.do_register = FALSE;
116  info.result = S_OK;
118  if (info.registrar) IRegistrar_Release( info.registrar );
119  return info.result;
120 }
static BOOL CALLBACK register_resource(HMODULE module, LPCWSTR type, LPWSTR name, LONG_PTR arg)
Definition: register.c:70
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR regtypeW[]
Definition: register.c:34
BOOL WINAPI EnumResourceNamesW(HMODULE hmod, LPCWSTR type, ENUMRESNAMEPROCW lpfun, LONG_PTR lparam)
Definition: res.c:358
#define S_OK
Definition: intsafe.h:59
__int3264 LONG_PTR
Definition: mstsclib_h.h:276

Referenced by DllUnregisterServer().

◆ CStdStubBuffer2_Release()

ULONG STDMETHODCALLTYPE CStdStubBuffer2_Release ( IRpcStubBuffer This)

◆ CStdStubBuffer_AddRef()

ULONG WINAPI CStdStubBuffer_AddRef ( IRpcStubBuffer This)

◆ CStdStubBuffer_Connect()

HRESULT WINAPI CStdStubBuffer_Connect ( IRpcStubBuffer This,
IUnknown pUnkServer 
)

◆ CStdStubBuffer_CountRefs()

ULONG WINAPI CStdStubBuffer_CountRefs ( IRpcStubBuffer This)

◆ CStdStubBuffer_DebugServerQueryInterface()

HRESULT WINAPI CStdStubBuffer_DebugServerQueryInterface ( IRpcStubBuffer This,
void **  ppv 
)

◆ CStdStubBuffer_DebugServerRelease()

void WINAPI CStdStubBuffer_DebugServerRelease ( IRpcStubBuffer This,
void pv 
)

◆ CStdStubBuffer_Disconnect()

void WINAPI CStdStubBuffer_Disconnect ( IRpcStubBuffer This)

◆ CStdStubBuffer_Invoke()

HRESULT WINAPI CStdStubBuffer_Invoke ( IRpcStubBuffer This,
RPCOLEMESSAGE *  pRpcMsg,
IRpcChannelBuffer pRpcChannelBuffer 
)

◆ CStdStubBuffer_IsIIDSupported()

IRpcStubBuffer* WINAPI CStdStubBuffer_IsIIDSupported ( IRpcStubBuffer This,
REFIID  riid 
)

◆ CStdStubBuffer_QueryInterface()

HRESULT WINAPI CStdStubBuffer_QueryInterface ( IRpcStubBuffer This,
REFIID  riid,
void **  ppvObject 
)

◆ CStdStubBuffer_Release()

ULONG WINAPI CStdStubBuffer_Release ( IRpcStubBuffer This)

◆ NdrCStdStubBuffer2_Release()

ULONG STDMETHODCALLTYPE NdrCStdStubBuffer2_Release ( IRpcStubBuffer This,
IPSFactoryBuffer pPSF 
)

◆ NdrCStdStubBuffer_Release()

ULONG WINAPI NdrCStdStubBuffer_Release ( IRpcStubBuffer This,
IPSFactoryBuffer pPSF 
)

◆ NdrDllCanUnloadNow()

RPCRTAPI HRESULT RPC_ENTRY NdrDllCanUnloadNow ( CStdPSFactoryBuffer pPSFactoryBuffer)

Definition at line 216 of file cpsf.c.

217 {
218  return pPSFactoryBuffer->RefCount != 0 ? S_FALSE : S_OK;
219 }
#define S_FALSE
Definition: winerror.h:2357
#define S_OK
Definition: intsafe.h:59

◆ NdrDllGetClassObject()

RPCRTAPI HRESULT RPC_ENTRY NdrDllGetClassObject ( REFCLSID  rclsid,
REFIID  riid,
void **  ppv,
const ProxyFileInfo **  pProxyFileList,
const CLSID pclsid,
CStdPSFactoryBuffer pPSFactoryBuffer 
)

◆ NdrDllRegisterProxy()

RPCRTAPI HRESULT RPC_ENTRY NdrDllRegisterProxy ( HMODULE  hDll,
const ProxyFileInfo **  pProxyFileList,
const CLSID pclsid 
)

Definition at line 225 of file cpsf.c.

228 {
229  static const WCHAR bothW[] = {'B','o','t','h',0};
230  static const WCHAR clsidW[] = {'C','L','S','I','D','\\',0};
231  static const WCHAR clsid32W[] = {'P','r','o','x','y','S','t','u','b','C','l','s','i','d','3','2',0};
232  static const WCHAR interfaceW[] = {'I','n','t','e','r','f','a','c','e','\\',0};
233  static const WCHAR psfactoryW[] = {'P','S','F','a','c','t','o','r','y','B','u','f','f','e','r',0};
234  static const WCHAR numformatW[] = {'%','u',0};
235  static const WCHAR nummethodsW[] = {'N','u','m','M','e','t','h','o','d','s',0};
236  static const WCHAR inprocserverW[] = {'I','n','P','r','o','c','S','e','r','v','e','r','3','2',0};
237  static const WCHAR threadingmodelW[] = {'T','h','r','e','a','d','i','n','g','M','o','d','e','l',0};
238  WCHAR clsid[39], keyname[50], module[MAX_PATH];
239  HKEY key, subkey;
240  DWORD len;
241 
242  TRACE("(%p,%p,%s)\n", hDll, pProxyFileList, debugstr_guid(pclsid));
243 
244  if (!hDll) return E_HANDLE;
245  if (!*pProxyFileList) return E_NOINTERFACE;
246 
247  if (pclsid)
248  format_clsid( clsid, pclsid );
249  else if ((*pProxyFileList)->TableSize > 0)
250  format_clsid( clsid,(*pProxyFileList)->pStubVtblList[0]->header.piid);
251  else
252  return E_NOINTERFACE;
253 
254  /* register interfaces to point to clsid */
255  while (*pProxyFileList) {
256  unsigned u;
257  for (u=0; u<(*pProxyFileList)->TableSize; u++) {
258  CInterfaceStubVtbl *proxy = (*pProxyFileList)->pStubVtblList[u];
259  PCInterfaceName name = (*pProxyFileList)->pNamesArray[u];
260 
261  TRACE("registering %s %s => %s\n",
262  debugstr_a(name), debugstr_guid(proxy->header.piid), debugstr_w(clsid));
263 
264  strcpyW( keyname, interfaceW );
265  format_clsid( keyname + strlenW(keyname), proxy->header.piid );
266  if (RegCreateKeyW(HKEY_CLASSES_ROOT, keyname, &key) == ERROR_SUCCESS) {
267  WCHAR num[10];
268  if (name)
269  RegSetValueExA(key, NULL, 0, REG_SZ, (const BYTE *)name, strlen(name)+1);
270  RegSetValueW( key, clsid32W, REG_SZ, clsid, 0 );
271  sprintfW(num, numformatW, proxy->header.DispatchTableCount);
273  RegCloseKey(key);
274  }
275  }
276  pProxyFileList++;
277  }
278 
279  /* register clsid to point to module */
280  strcpyW( keyname, clsidW );
281  strcatW( keyname, clsid );
283  if (len && len < sizeof(module)) {
284  TRACE("registering CLSID %s => %s\n", debugstr_w(clsid), debugstr_w(module));
285  if (RegCreateKeyW(HKEY_CLASSES_ROOT, keyname, &key) == ERROR_SUCCESS) {
286  RegSetValueExW(key, NULL, 0, REG_SZ, (const BYTE *)psfactoryW, sizeof(psfactoryW));
287  if (RegCreateKeyW(key, inprocserverW, &subkey) == ERROR_SUCCESS) {
288  RegSetValueExW(subkey, NULL, 0, REG_SZ, (LPBYTE)module, (strlenW(module)+1)*sizeof(WCHAR));
289  RegSetValueExW(subkey, threadingmodelW, 0, REG_SZ, (const BYTE *)bothW, sizeof(bothW));
290  RegCloseKey(subkey);
291  }
292  RegCloseKey(key);
293  }
294  }
295 
296  return S_OK;
297 }
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
Definition: glfuncs.h:240
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
Definition: loader.c:607
int proxy
Definition: main.c:67
#define E_NOINTERFACE
Definition: winerror.h:2364
#define E_HANDLE
Definition: winerror.h:2850
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
#define ERROR_SUCCESS
Definition: deptool.c:10
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
LONG WINAPI RegSetValueW(HKEY hKeyOriginal, LPCWSTR lpSubKey, DWORD dwType, LPCWSTR lpData, DWORD cbData)
Definition: reg.c:5036
static void format_clsid(WCHAR *buffer, const CLSID *clsid)
Definition: cpsf.c:46
LONG WINAPI RegCloseKey(HKEY hKey)
Definition: reg.c:423
unsigned char * LPBYTE
Definition: typedefs.h:52
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR threadingmodelW[]
Definition: actctx.c:612
#define debugstr_guid
Definition: kernel32.h:35
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
Definition: reg.c:4917
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR clsidW[]
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define debugstr_a
Definition: kernel32.h:31
#define MAX_PATH
Definition: compat.h:26
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLuint num
Definition: glext.h:9618
REFCLSID clsid
Definition: msctf.c:84
HKEY key
Definition: reg.c:42
GLenum GLsizei len
Definition: glext.h:6722
unsigned char BYTE
Definition: mem.h:68
LONG WINAPI RegCreateKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
Definition: reg.c:1202
#define S_OK
Definition: intsafe.h:59
WINE_UNICODE_INLINE WCHAR * strcpyW(WCHAR *dst, const WCHAR *src)
Definition: unicode.h:219
static const WCHAR nummethodsW[]
Definition: actctx.c:631
const char * PCInterfaceName
Definition: rpcproxy.h:42
#define ARRAY_SIZE(a)
Definition: main.h:24
#define sprintfW
Definition: unicode.h:58
WINE_UNICODE_INLINE WCHAR * strcatW(WCHAR *dst, const WCHAR *src)
Definition: unicode.h:242
Definition: name.c:36
#define HKEY_CLASSES_ROOT
Definition: winreg.h:10
LONG WINAPI RegSetValueExA(HKEY hKey, LPCSTR lpValueName, DWORD Reserved, DWORD dwType, CONST BYTE *lpData, DWORD cbData)
Definition: reg.c:4831
Definition: path.c:42
#define REG_SZ
Definition: layer.c:22

Referenced by test_NdrDllRegisterProxy().

◆ NdrDllUnregisterProxy()

RPCRTAPI HRESULT RPC_ENTRY NdrDllUnregisterProxy ( HMODULE  hDll,
const ProxyFileInfo **  pProxyFileList,
const CLSID pclsid 
)

Definition at line 302 of file cpsf.c.

305 {
306  static const WCHAR clsidW[] = {'C','L','S','I','D','\\',0};
307  static const WCHAR interfaceW[] = {'I','n','t','e','r','f','a','c','e','\\',0};
308  WCHAR keyname[50];
309  WCHAR clsid[39];
310 
311  TRACE("(%p,%p,%s)\n", hDll, pProxyFileList, debugstr_guid(pclsid));
312  if (pclsid)
313  format_clsid( clsid, pclsid );
314  else if ((*pProxyFileList)->TableSize > 0)
315  format_clsid( clsid,(*pProxyFileList)->pStubVtblList[0]->header.piid);
316  else
317  return E_NOINTERFACE;
318 
319  /* unregister interfaces */
320  while (*pProxyFileList) {
321  unsigned u;
322  for (u=0; u<(*pProxyFileList)->TableSize; u++) {
323  CInterfaceStubVtbl *proxy = (*pProxyFileList)->pStubVtblList[u];
324  PCInterfaceName name = (*pProxyFileList)->pNamesArray[u];
325 
326  TRACE("unregistering %s %s\n", debugstr_a(name), debugstr_guid(proxy->header.piid));
327 
328  strcpyW( keyname, interfaceW );
329  format_clsid( keyname + strlenW(keyname), proxy->header.piid );
331  }
332  pProxyFileList++;
333  }
334 
335  /* unregister clsid */
336  strcpyW( keyname, clsidW );
337  strcatW( keyname, clsid );
339 
340  return S_OK;
341 }
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
Definition: glfuncs.h:240
int proxy
Definition: main.c:67
#define E_NOINTERFACE
Definition: winerror.h:2364
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
static void format_clsid(WCHAR *buffer, const CLSID *clsid)
Definition: cpsf.c:46
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR clsidW[]
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define debugstr_a
Definition: kernel32.h:31
REFCLSID clsid
Definition: msctf.c:84
LSTATUS WINAPI RegDeleteTreeW(HKEY hKey, LPCWSTR lpszSubKey)
Definition: reg.c:1755
#define S_OK
Definition: intsafe.h:59
WINE_UNICODE_INLINE WCHAR * strcpyW(WCHAR *dst, const WCHAR *src)
Definition: unicode.h:219
const char * PCInterfaceName
Definition: rpcproxy.h:42
WINE_UNICODE_INLINE WCHAR * strcatW(WCHAR *dst, const WCHAR *src)
Definition: unicode.h:242
Definition: name.c:36
#define HKEY_CLASSES_ROOT
Definition: winreg.h:10

Referenced by test_NdrDllRegisterProxy().

◆ NdrProxyErrorHandler()

RPCRTAPI HRESULT RPC_ENTRY NdrProxyErrorHandler ( DWORD  dwExceptionCode)

Definition at line 547 of file cproxy.c.

548 {
549  WARN("(0x%08x): a proxy call failed\n", dwExceptionCode);
550 
551  if (FAILED(dwExceptionCode))
552  return dwExceptionCode;
553  else
554  return HRESULT_FROM_WIN32(dwExceptionCode);
555 }
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92
#define WARN(fmt,...)
Definition: debug.h:111

Referenced by ndr_client_call().

◆ NdrProxyFreeBuffer()

RPCRTAPI void RPC_ENTRY NdrProxyFreeBuffer ( void This,
PMIDL_STUB_MESSAGE  pStubMsg 
)

Definition at line 531 of file cproxy.c.

533 {
534  TRACE("(%p,%p)\n", This, pStubMsg);
535 
536  if (pStubMsg->fBufferValid)
537  {
538  IRpcChannelBuffer_FreeBuffer(pStubMsg->pRpcChannelBuffer,
539  (RPCOLEMESSAGE*)pStubMsg->RpcMsg);
540  pStubMsg->fBufferValid = TRUE;
541  }
542 }
#define TRUE
Definition: types.h:120
PRPC_MESSAGE RpcMsg
Definition: rpcndr.h:202
#define TRACE(s)
Definition: solgame.cpp:4
unsigned int fBufferValid
Definition: rpcndr.h:243
struct IRpcChannelBuffer * pRpcChannelBuffer
Definition: rpcndr.h:253

Referenced by ndr_client_call().

◆ NdrProxyGetBuffer()

RPCRTAPI void RPC_ENTRY NdrProxyGetBuffer ( void This,
PMIDL_STUB_MESSAGE  pStubMsg 
)

Definition at line 469 of file cproxy.c.

471 {
472  HRESULT hr;
473  const IID *riid = NULL;
474 
475  TRACE("(%p,%p)\n", This, pStubMsg);
476  pStubMsg->RpcMsg->BufferLength = pStubMsg->BufferLength;
477  pStubMsg->dwStubPhase = PROXY_GETBUFFER;
479  hr = IRpcChannelBuffer_GetBuffer(pStubMsg->pRpcChannelBuffer,
480  (RPCOLEMESSAGE*)pStubMsg->RpcMsg,
481  riid);
482  if (FAILED(hr))
483  {
485  return;
486  }
487  pStubMsg->fBufferValid = TRUE;
488  pStubMsg->BufferStart = pStubMsg->RpcMsg->Buffer;
489  pStubMsg->BufferEnd = pStubMsg->BufferStart + pStubMsg->BufferLength;
490  pStubMsg->Buffer = pStubMsg->BufferStart;
491  pStubMsg->dwStubPhase = PROXY_MARSHAL;
492 }
#define TRUE
Definition: types.h:120
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
void DECLSPEC_NORETURN WINAPI RpcRaiseException(RPC_STATUS exception)
Definition: rpcrt4_main.c:189
unsigned char * Buffer
Definition: rpcndr.h:203
static void StdProxy_GetIID(LPVOID iface, const IID **ppiid)
Definition: cproxy.c:416
PRPC_MESSAGE RpcMsg
Definition: rpcndr.h:202
unsigned int BufferLength
Definition: rpcdcep.h:41
void * Buffer
Definition: rpcdcep.h:40
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
DWORD dwStubPhase
Definition: rpcndr.h:259
LONG HRESULT
Definition: typedefs.h:77
unsigned char * BufferStart
Definition: rpcndr.h:204
ULONG BufferLength
Definition: rpcndr.h:207
unsigned char * BufferEnd
Definition: rpcndr.h:205
unsigned int fBufferValid
Definition: rpcndr.h:243
struct IRpcChannelBuffer * pRpcChannelBuffer
Definition: rpcndr.h:253

Referenced by ndr_client_call().

◆ NdrProxyInitialize()

RPCRTAPI void RPC_ENTRY NdrProxyInitialize ( void This,
PRPC_MESSAGE  pRpcMsg,
PMIDL_STUB_MESSAGE  pStubMsg,
PMIDL_STUB_DESC  pStubDescriptor,
unsigned int  ProcNum 
)

Definition at line 451 of file cproxy.c.

456 {
457  TRACE("(%p,%p,%p,%p,%d)\n", This, pRpcMsg, pStubMsg, pStubDescriptor, ProcNum);
458  NdrClientInitializeNew(pRpcMsg, pStubMsg, pStubDescriptor, ProcNum);
460  IRpcChannelBuffer_GetDestCtx(pStubMsg->pRpcChannelBuffer,
461  &pStubMsg->dwDestContext,
462  &pStubMsg->pvDestContext);
463  TRACE("channel=%p\n", pStubMsg->pRpcChannelBuffer);
464 }
DWORD dwDestContext
Definition: rpcndr.h:249
#define TRACE(s)
Definition: solgame.cpp:4
void * pvDestContext
Definition: rpcndr.h:250
static void StdProxy_GetChannel(LPVOID iface, LPRPCCHANNELBUFFER *ppChannel)
Definition: cproxy.c:407
void WINAPI NdrClientInitializeNew(PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum)
struct IRpcChannelBuffer * pRpcChannelBuffer
Definition: rpcndr.h:253

Referenced by ndr_client_call().

◆ NdrProxySendReceive()

RPCRTAPI void RPC_ENTRY NdrProxySendReceive ( void This,
PMIDL_STUB_MESSAGE  pStubMsg 
)

Definition at line 497 of file cproxy.c.

499 {
500  ULONG Status = 0;
501  HRESULT hr;
502 
503  TRACE("(%p,%p)\n", This, pStubMsg);
504 
505  if (!pStubMsg->pRpcChannelBuffer)
506  {
507  WARN("Trying to use disconnected proxy %p\n", This);
509  }
510 
511  pStubMsg->dwStubPhase = PROXY_SENDRECEIVE;
512  /* avoid sending uninitialised parts of the buffer on the wire */
513  pStubMsg->RpcMsg->BufferLength = pStubMsg->Buffer - (unsigned char *)pStubMsg->RpcMsg->Buffer;
514  hr = IRpcChannelBuffer_SendReceive(pStubMsg->pRpcChannelBuffer,
515  (RPCOLEMESSAGE*)pStubMsg->RpcMsg,
516  &Status);
517  pStubMsg->dwStubPhase = PROXY_UNMARSHAL;
518  pStubMsg->BufferLength = pStubMsg->RpcMsg->BufferLength;
519  pStubMsg->BufferStart = pStubMsg->RpcMsg->Buffer;
520  pStubMsg->BufferEnd = pStubMsg->BufferStart + pStubMsg->BufferLength;
521  pStubMsg->Buffer = pStubMsg->BufferStart;
522 
523  /* raise exception if call failed */
524  if (hr == RPC_S_CALL_FAILED) RpcRaiseException(*(DWORD*)pStubMsg->Buffer);
525  else if (FAILED(hr)) RpcRaiseException(hr);
526 }
HRESULT hr
Definition: shlfolder.c:183
void DECLSPEC_NORETURN WINAPI RpcRaiseException(RPC_STATUS exception)
Definition: rpcrt4_main.c:189
#define WARN(fmt,...)
Definition: debug.h:111
unsigned char * Buffer
Definition: rpcndr.h:203
PRPC_MESSAGE RpcMsg
Definition: rpcndr.h:202
unsigned int BufferLength
Definition: rpcdcep.h:41
void * Buffer
Definition: rpcdcep.h:40
#define TRACE(s)
Definition: solgame.cpp:4
DWORD dwStubPhase
Definition: rpcndr.h:259
LONG HRESULT
Definition: typedefs.h:77
unsigned long DWORD
Definition: ntddk_ex.h:95
#define RPC_E_DISCONNECTED
Definition: winerror.h:2484
unsigned char * BufferStart
Definition: rpcndr.h:204
ULONG BufferLength
Definition: rpcndr.h:207
unsigned char * BufferEnd
Definition: rpcndr.h:205
Status
Definition: gdiplustypes.h:24
unsigned int ULONG
Definition: retypes.h:1
#define RPC_S_CALL_FAILED
Definition: winerror.h:1037
struct IRpcChannelBuffer * pRpcChannelBuffer
Definition: rpcndr.h:253

Referenced by ndr_client_call().

◆ NdrStubErrorHandler()

RPCRTAPI HRESULT RPC_ENTRY NdrStubErrorHandler ( DWORD  dwExceptionCode)

◆ NdrStubForwardingFunction()

void __RPC_STUB NdrStubForwardingFunction ( IRpcStubBuffer This,
IRpcChannelBuffer pChannel,
PRPC_MESSAGE  pMsg,
DWORD pdwStubPhase 
)

Definition at line 610 of file cstub.c.

612 {
613  /* Note pMsg is passed intact since RPCOLEMESSAGE is basically a RPC_MESSAGE. */
614 
616  HRESULT r = IRpcStubBuffer_Invoke(This->base_stub, (RPCOLEMESSAGE*)pMsg, pChannel);
617  if(FAILED(r)) RpcRaiseException(r);
618  return;
619 }
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
void DECLSPEC_NORETURN WINAPI RpcRaiseException(RPC_STATUS exception)
Definition: rpcrt4_main.c:189
LONG HRESULT
Definition: typedefs.h:77
static cstdstubbuffer_delegating_t * impl_from_delegating(IRpcStubBuffer *iface)
Definition: cstub.c:53

Referenced by CreateStubFromTypeInfo(), and test_NdrStubForwardingFunction().

◆ NdrStubGetBuffer()

RPCRTAPI void RPC_ENTRY NdrStubGetBuffer ( IRpcStubBuffer This,
IRpcChannelBuffer pRpcChannelBuffer,
PMIDL_STUB_MESSAGE  pStubMsg 
)

◆ NdrStubInitialize()

RPCRTAPI void RPC_ENTRY NdrStubInitialize ( PRPC_MESSAGE  pRpcMsg,
PMIDL_STUB_MESSAGE  pStubMsg,
PMIDL_STUB_DESC  pStubDescriptor,
IRpcChannelBuffer pRpcChannelBuffer 
)

◆ NdrStubInitializePartial()

RPCRTAPI void RPC_ENTRY NdrStubInitializePartial ( PRPC_MESSAGE  pRpcMsg,
PMIDL_STUB_MESSAGE  pStubMsg,
PMIDL_STUB_DESC  pStubDescriptor,
IRpcChannelBuffer pRpcChannelBuffer,
ULONG  RequestedBufferSize 
)