1 /*** Autogenerated by WIDL 0.1 from unknwn.idl - Do not edit ***/
5 #ifndef __WIDL_UNKNWN_H
6 #define __WIDL_UNKNWN_H
11 #if defined(ICOM_MSVTABLE_COMPAT) && (!defined(__cplusplus) || defined(CINTERFACE))
12 # define ICOM_MSVTABLE_COMPAT_FIELDS long dummyRTTI1,dummyRTTI2;
13 # define ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 0,0,
15 # define ICOM_MSVTABLE_COMPAT_FIELDS
16 # define ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
18 #ifndef __IUnknown_FWD_DEFINED__
19 #define __IUnknown_FWD_DEFINED__
20 typedef struct IUnknown IUnknown
;
23 typedef IUnknown
*LPUNKNOWN
;
25 /*****************************************************************************
28 #ifndef __IUnknown_INTERFACE_DEFINED__
29 #define __IUnknown_INTERFACE_DEFINED__
31 DEFINE_GUID(IID_IUnknown
, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
32 #if defined(__cplusplus) && !defined(CINTERFACE)
33 #ifdef ICOM_USE_COM_INTERFACE_ATTRIBUTE
34 struct __attribute__((com_interface
)) IUnknown
39 virtual HRESULT STDMETHODCALLTYPE
QueryInterface(
41 void** ppvObject
) = 0;
43 virtual ULONG STDMETHODCALLTYPE
AddRef(
46 virtual ULONG STDMETHODCALLTYPE
Release(
51 typedef struct IUnknownVtbl IUnknownVtbl
;
53 const IUnknownVtbl
* lpVtbl
;
56 ICOM_MSVTABLE_COMPAT_FIELDS
58 /*** IUnknown methods ***/
59 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
64 ULONG (STDMETHODCALLTYPE
*AddRef
)(
67 ULONG (STDMETHODCALLTYPE
*Release
)(
72 /*** IUnknown methods ***/
73 #define IUnknown_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
74 #define IUnknown_AddRef(p) (p)->lpVtbl->AddRef(p)
75 #define IUnknown_Release(p) (p)->lpVtbl->Release(p)
79 #define IUnknown_METHODS \
80 ICOM_MSVTABLE_COMPAT_FIELDS \
81 /*** IUnknown methods ***/ \
82 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
83 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
84 STDMETHOD_(ULONG,Release)(THIS) PURE;
86 HRESULT CALLBACK
IUnknown_QueryInterface_Proxy(
90 void __RPC_STUB
IUnknown_QueryInterface_Stub(
91 struct IRpcStubBuffer
* This
,
92 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
93 PRPC_MESSAGE pRpcMessage
,
95 ULONG CALLBACK
IUnknown_AddRef_Proxy(
97 void __RPC_STUB
IUnknown_AddRef_Stub(
98 struct IRpcStubBuffer
* This
,
99 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
100 PRPC_MESSAGE pRpcMessage
,
101 DWORD
* pdwStubPhase
);
102 ULONG CALLBACK
IUnknown_Release_Proxy(
104 void __RPC_STUB
IUnknown_Release_Stub(
105 struct IRpcStubBuffer
* This
,
106 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
107 PRPC_MESSAGE pRpcMessage
,
108 DWORD
* pdwStubPhase
);
110 #endif /* __IUnknown_INTERFACE_DEFINED__ */
112 #ifndef __IClassFactory_FWD_DEFINED__
113 #define __IClassFactory_FWD_DEFINED__
114 typedef struct IClassFactory IClassFactory
;
117 typedef IClassFactory
*LPCLASSFACTORY
;
119 /*****************************************************************************
120 * IClassFactory interface
122 #ifndef __IClassFactory_INTERFACE_DEFINED__
123 #define __IClassFactory_INTERFACE_DEFINED__
125 DEFINE_GUID(IID_IClassFactory
, 0x00000001, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
126 #if defined(__cplusplus) && !defined(CINTERFACE)
127 struct IClassFactory
: public IUnknown
129 virtual HRESULT STDMETHODCALLTYPE
CreateInstance(
132 void** ppvObject
) = 0;
134 virtual HRESULT STDMETHODCALLTYPE
LockServer(
139 typedef struct IClassFactoryVtbl IClassFactoryVtbl
;
140 struct IClassFactory
{
141 const IClassFactoryVtbl
* lpVtbl
;
143 struct IClassFactoryVtbl
{
144 ICOM_MSVTABLE_COMPAT_FIELDS
146 /*** IUnknown methods ***/
147 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
152 ULONG (STDMETHODCALLTYPE
*AddRef
)(
153 IClassFactory
* This
);
155 ULONG (STDMETHODCALLTYPE
*Release
)(
156 IClassFactory
* This
);
158 /*** IClassFactory methods ***/
159 HRESULT (STDMETHODCALLTYPE
*CreateInstance
)(
165 HRESULT (STDMETHODCALLTYPE
*LockServer
)(
171 /*** IUnknown methods ***/
172 #define IClassFactory_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
173 #define IClassFactory_AddRef(p) (p)->lpVtbl->AddRef(p)
174 #define IClassFactory_Release(p) (p)->lpVtbl->Release(p)
175 /*** IClassFactory methods ***/
176 #define IClassFactory_CreateInstance(p,a,b,c) (p)->lpVtbl->CreateInstance(p,a,b,c)
177 #define IClassFactory_LockServer(p,a) (p)->lpVtbl->LockServer(p,a)
181 #define IClassFactory_METHODS \
182 ICOM_MSVTABLE_COMPAT_FIELDS \
183 /*** IUnknown methods ***/ \
184 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
185 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
186 STDMETHOD_(ULONG,Release)(THIS) PURE; \
187 /*** IClassFactory methods ***/ \
188 STDMETHOD_(HRESULT,CreateInstance)(THIS_ IUnknown* pUnkOuter, REFIID riid, void** ppvObject) PURE; \
189 STDMETHOD_(HRESULT,LockServer)(THIS_ BOOL fLock) PURE;
191 HRESULT CALLBACK
IClassFactory_RemoteCreateInstance_Proxy(
194 IUnknown
** ppvObject
);
195 void __RPC_STUB
IClassFactory_RemoteCreateInstance_Stub(
196 struct IRpcStubBuffer
* This
,
197 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
198 PRPC_MESSAGE pRpcMessage
,
199 DWORD
* pdwStubPhase
);
200 HRESULT CALLBACK
IClassFactory_CreateInstance_Proxy(
205 HRESULT __RPC_STUB
IClassFactory_CreateInstance_Stub(
208 IUnknown
** ppvObject
);
209 HRESULT CALLBACK
IClassFactory_RemoteLockServer_Proxy(
212 void __RPC_STUB
IClassFactory_RemoteLockServer_Stub(
213 struct IRpcStubBuffer
* This
,
214 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
215 PRPC_MESSAGE pRpcMessage
,
216 DWORD
* pdwStubPhase
);
217 HRESULT CALLBACK
IClassFactory_LockServer_Proxy(
220 HRESULT __RPC_STUB
IClassFactory_LockServer_Stub(
224 #endif /* __IClassFactory_INTERFACE_DEFINED__ */
229 #endif /* __WIDL_UNKNWN_H */