ReactOS  0.4.14-dev-342-gdc047f9
cpsf.h
Go to the documentation of this file.
1 /*
2  * COM proxy definitions
3  *
4  * Copyright 2001 Ove K√•ven, TransGaming Technologies
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 #ifndef __WINE_CPSF_H
22 #define __WINE_CPSF_H
23 
24 typedef struct
25 {
27  void **PVtbl;
29  const IID *piid;
31  /* offset of base_object from PVtbl must match assembly thunks; see
32  * fill_delegated_proxy_table() */
38 } StdProxyImpl;
39 
40 typedef struct
41 {
42  IUnknownVtbl *base_obj;
46 
47 HRESULT StdProxy_Construct(REFIID riid, LPUNKNOWN pUnkOuter, const ProxyFileInfo *ProxyInfo,
48  int Index, LPPSFACTORYBUFFER pPSFactory, LPRPCPROXYBUFFER *ppProxy,
49  LPVOID *ppvObj) DECLSPEC_HIDDEN;
54 
56  CInterfaceStubVtbl *vtbl, LPPSFACTORYBUFFER pPSFactory,
58 
60  CInterfaceStubVtbl *vtbl, REFIID delegating_iid,
61  LPPSFACTORYBUFFER pPSFactory, LPRPCSTUBBUFFER *ppStub) DECLSPEC_HIDDEN;
62 
64 
65 extern const IRpcStubBufferVtbl CStdStubBuffer_Vtbl DECLSPEC_HIDDEN;
66 extern const IRpcStubBufferVtbl CStdStubBuffer_Delegating_Vtbl DECLSPEC_HIDDEN;
67 
69 HRESULT create_proxy(REFIID iid, IUnknown *pUnkOuter, IRpcProxyBuffer **pproxy, void **ppv) DECLSPEC_HIDDEN;
71 BOOL fill_stubless_table(IUnknownVtbl *vtbl, DWORD num) DECLSPEC_HIDDEN;
72 IUnknownVtbl *get_delegating_vtbl(DWORD num_methods) DECLSPEC_HIDDEN;
73 void release_delegating_vtbl(IUnknownVtbl *vtbl) DECLSPEC_HIDDEN;
74 
75 #endif /* __WINE_CPSF_H */
HRESULT CStdStubBuffer_Construct(REFIID riid, LPUNKNOWN pUnkServer, PCInterfaceName name, CInterfaceStubVtbl *vtbl, LPPSFACTORYBUFFER pPSFactory, LPRPCSTUBBUFFER *ppStub) DECLSPEC_HIDDEN
Definition: cstub.c:58
BOOL fill_stubless_table(IUnknownVtbl *vtbl, DWORD num) DECLSPEC_HIDDEN
Definition: cproxy.c:241
#define REFIID
Definition: guiddef.h:118
BOOL fill_delegated_proxy_table(IUnknownVtbl *vtbl, DWORD num) DECLSPEC_HIDDEN
Definition: cstub.c:252
const MIDL_SERVER_INFO * CStdStubBuffer_GetServerInfo(IRpcStubBuffer *iface) DECLSPEC_HIDDEN
Definition: cstub.c:601
REFIID riid
Definition: precomp.h:44
interface IRpcProxyBuffer * LPRPCPROXYBUFFER
Definition: objfwd.h:40
ULONG WINAPI StdProxy_AddRef(IRpcProxyBuffer *iface) DECLSPEC_HIDDEN
Definition: cproxy.c:346
CStdStubBuffer stub_buffer
Definition: cpsf.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
IUnknown * base_object
Definition: cpsf.h:33
IRpcStubBuffer * base_stub
Definition: cpsf.h:43
IRpcProxyBuffer IRpcProxyBuffer_iface
Definition: cpsf.h:26
HRESULT WINAPI StdProxy_Connect(IRpcProxyBuffer *iface, IRpcChannelBuffer *channel) DECLSPEC_HIDDEN
Definition: cproxy.c:376
HRESULT StdProxy_Construct(REFIID riid, LPUNKNOWN pUnkOuter, const ProxyFileInfo *ProxyInfo, int Index, LPPSFACTORYBUFFER pPSFactory, LPRPCPROXYBUFFER *ppProxy, LPVOID *ppvObj) DECLSPEC_HIDDEN
Definition: cproxy.c:261
IUnknownVtbl * get_delegating_vtbl(DWORD num_methods) DECLSPEC_HIDDEN
Definition: cstub.c:275
IUnknown * pUnkOuter
Definition: cpsf.h:30
HRESULT WINAPI StdProxy_QueryInterface(IRpcProxyBuffer *iface, REFIID iid, void **obj) DECLSPEC_HIDDEN
Definition: cproxy.c:325
HRESULT CStdStubBuffer_Delegating_Construct(REFIID riid, LPUNKNOWN pUnkServer, PCInterfaceName name, CInterfaceStubVtbl *vtbl, REFIID delegating_iid, LPPSFACTORYBUFFER pPSFactory, LPRPCSTUBBUFFER *ppStub) DECLSPEC_HIDDEN
Definition: cstub.c:326
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
static LPUNKNOWN
Definition: ndr_ole.c:49
void WINAPI StdProxy_Disconnect(IRpcProxyBuffer *iface) DECLSPEC_HIDDEN
Definition: cproxy.c:387
const IRpcStubBufferVtbl CStdStubBuffer_Vtbl DECLSPEC_HIDDEN
Definition: cpsf.h:66
IPSFactoryBuffer * pPSFactory
Definition: cpsf.h:36
const IRpcStubBufferVtbl CStdStubBuffer_Vtbl
Definition: cstub.c:538
LONG HRESULT
Definition: typedefs.h:77
#define WINAPI
Definition: msvc.h:8
static const UCHAR Index[8]
Definition: usbohci.c:18
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLuint num
Definition: glext.h:9618
void ** PVtbl
Definition: cpsf.h:27
PCInterfaceName name
Definition: cpsf.h:35
const char * PCInterfaceName
Definition: rpcproxy.h:42
IUnknownVtbl * base_obj
Definition: cpsf.h:42
HRESULT create_proxy(REFIID iid, IUnknown *pUnkOuter, IRpcProxyBuffer **pproxy, void **ppv) DECLSPEC_HIDDEN
Definition: ndr_ole.c:442
Definition: name.c:36
LONG RefCount
Definition: cpsf.h:28
unsigned int ULONG
Definition: retypes.h:1
interface IRpcStubBuffer * LPRPCSTUBBUFFER
Definition: objfwd.h:41
void release_delegating_vtbl(IUnknownVtbl *vtbl) DECLSPEC_HIDDEN
Definition: cstub.c:311
const IID * piid
Definition: cpsf.h:29
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
Definition: dplayx.c:30
IRpcProxyBuffer * base_proxy
Definition: cpsf.h:34
IRpcChannelBuffer * pChannel
Definition: cpsf.h:37
const IRpcStubBufferVtbl CStdStubBuffer_Delegating_Vtbl
Definition: cstub.c:587
HRESULT create_stub(REFIID iid, IUnknown *pUnk, IRpcStubBuffer **ppstub) DECLSPEC_HIDDEN
Definition: ndr_ole.c:466