1 /*** Autogenerated by WIDL 1.5.29 from /tmp/build-mingw64-toolchain-joshualang/src/mingw-w64-svn-r5861/mingw-w64-headers/include/unknwn.idl - Do not edit ***/ 2 3 #ifndef __REQUIRED_RPCNDR_H_VERSION__ 4 #define __REQUIRED_RPCNDR_H_VERSION__ 475 5 #endif 6 7 #include <rpc.h> 8 #include <rpcndr.h> 9 10 #ifndef COM_NO_WINDOWS_H 11 #include <windows.h> 12 #include <ole2.h> 13 #endif 14 15 #ifndef __unknwn_h__ 16 #define __unknwn_h__ 17 18 /* Forward declarations */ 19 20 #ifndef __IUnknown_FWD_DEFINED__ 21 #define __IUnknown_FWD_DEFINED__ 22 typedef interface IUnknown IUnknown; 23 #endif 24 25 #ifndef __AsyncIUnknown_FWD_DEFINED__ 26 #define __AsyncIUnknown_FWD_DEFINED__ 27 typedef interface AsyncIUnknown AsyncIUnknown; 28 #endif 29 30 #ifndef __IClassFactory_FWD_DEFINED__ 31 #define __IClassFactory_FWD_DEFINED__ 32 typedef interface IClassFactory IClassFactory; 33 #endif 34 35 /* Headers for imported files */ 36 37 #include <wtypes.h> 38 39 #ifdef __cplusplus 40 extern "C" { 41 #endif 42 43 #if defined(__cplusplus) && !defined(CINTERFACE) && !defined(__IUnknown_INTERFACE_DEFINED__) 44 #define __IUnknown_INTERFACE_DEFINED__ 45 typedef IUnknown *LPUNKNOWN; 46 EXTERN_C const IID IID_IUnknown; 47 extern "C++" { 48 struct IUnknown { 49 public: 50 BEGIN_INTERFACE 51 virtual HRESULT WINAPI QueryInterface(REFIID riid,void **ppvObject) = 0; 52 virtual ULONG WINAPI AddRef(void) = 0; 53 virtual ULONG WINAPI Release(void) = 0; 54 #ifndef __STRICT_ANSI__ 55 template<class Q> HRESULT WINAPI QueryInterface(Q **pp) { return QueryInterface(__uuidof(*pp),(void **)pp); } 56 #endif 57 END_INTERFACE 58 }; 59 } 60 HRESULT WINAPI IUnknown_QueryInterface_Proxy(IUnknown *This,REFIID riid,void **ppvObject); 61 void __RPC_STUB IUnknown_QueryInterface_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase); 62 ULONG WINAPI IUnknown_AddRef_Proxy(IUnknown *This); 63 void __RPC_STUB IUnknown_AddRef_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase); 64 ULONG WINAPI IUnknown_Release_Proxy(IUnknown *This); 65 void __RPC_STUB IUnknown_Release_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase); 66 __CRT_UUID_DECL(IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46) 67 #else 68 /***************************************************************************** 69 * IUnknown interface 70 */ 71 #ifndef __IUnknown_INTERFACE_DEFINED__ 72 #define __IUnknown_INTERFACE_DEFINED__ 73 74 typedef IUnknown *LPUNKNOWN; 75 DEFINE_GUID(IID_IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); 76 #if defined(__cplusplus) && !defined(CINTERFACE) 77 MIDL_INTERFACE("00000000-0000-0000-c000-000000000046") 78 IUnknown 79 { 80 BEGIN_INTERFACE 81 82 virtual HRESULT STDMETHODCALLTYPE QueryInterface( 83 REFIID riid, 84 void **ppvObject) = 0; 85 86 virtual ULONG STDMETHODCALLTYPE AddRef( 87 ) = 0; 88 89 virtual ULONG STDMETHODCALLTYPE Release( 90 ) = 0; 91 92 END_INTERFACE 93 }; 94 #ifdef __CRT_UUID_DECL 95 __CRT_UUID_DECL(IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46) 96 #endif 97 #else 98 typedef struct IUnknownVtbl { 99 BEGIN_INTERFACE 100 101 /*** IUnknown methods ***/ 102 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 103 IUnknown* This, 104 REFIID riid, 105 void **ppvObject); 106 107 ULONG (STDMETHODCALLTYPE *AddRef)( 108 IUnknown* This); 109 110 ULONG (STDMETHODCALLTYPE *Release)( 111 IUnknown* This); 112 113 END_INTERFACE 114 } IUnknownVtbl; 115 interface IUnknown { 116 CONST_VTBL IUnknownVtbl* lpVtbl; 117 }; 118 119 #ifdef COBJMACROS 120 #ifndef WIDL_C_INLINE_WRAPPERS 121 /*** IUnknown methods ***/ 122 #define IUnknown_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 123 #define IUnknown_AddRef(This) (This)->lpVtbl->AddRef(This) 124 #define IUnknown_Release(This) (This)->lpVtbl->Release(This) 125 #else 126 /*** IUnknown methods ***/ 127 static FORCEINLINE HRESULT IUnknown_QueryInterface(IUnknown* This,REFIID riid,void **ppvObject) { 128 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 129 } 130 static FORCEINLINE ULONG IUnknown_AddRef(IUnknown* This) { 131 return This->lpVtbl->AddRef(This); 132 } 133 static FORCEINLINE ULONG IUnknown_Release(IUnknown* This) { 134 return This->lpVtbl->Release(This); 135 } 136 #endif 137 #endif 138 139 #endif 140 141 HRESULT STDMETHODCALLTYPE IUnknown_QueryInterface_Proxy( 142 IUnknown* This, 143 REFIID riid, 144 void **ppvObject); 145 void __RPC_STUB IUnknown_QueryInterface_Stub( 146 IRpcStubBuffer* This, 147 IRpcChannelBuffer* pRpcChannelBuffer, 148 PRPC_MESSAGE pRpcMessage, 149 DWORD* pdwStubPhase); 150 ULONG STDMETHODCALLTYPE IUnknown_AddRef_Proxy( 151 IUnknown* This); 152 void __RPC_STUB IUnknown_AddRef_Stub( 153 IRpcStubBuffer* This, 154 IRpcChannelBuffer* pRpcChannelBuffer, 155 PRPC_MESSAGE pRpcMessage, 156 DWORD* pdwStubPhase); 157 ULONG STDMETHODCALLTYPE IUnknown_Release_Proxy( 158 IUnknown* This); 159 void __RPC_STUB IUnknown_Release_Stub( 160 IRpcStubBuffer* This, 161 IRpcChannelBuffer* pRpcChannelBuffer, 162 PRPC_MESSAGE pRpcMessage, 163 DWORD* pdwStubPhase); 164 165 #endif /* __IUnknown_INTERFACE_DEFINED__ */ 166 167 #endif 168 /***************************************************************************** 169 * AsyncIUnknown interface 170 */ 171 #ifndef __AsyncIUnknown_INTERFACE_DEFINED__ 172 #define __AsyncIUnknown_INTERFACE_DEFINED__ 173 174 DEFINE_GUID(IID_AsyncIUnknown, 0x000e0000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); 175 #if defined(__cplusplus) && !defined(CINTERFACE) 176 MIDL_INTERFACE("000e0000-0000-0000-c000-000000000046") 177 AsyncIUnknown : public IUnknown 178 { 179 virtual HRESULT STDMETHODCALLTYPE Begin_QueryInterface( 180 REFIID riid) = 0; 181 182 virtual HRESULT STDMETHODCALLTYPE Finish_QueryInterface( 183 void **ppvObject) = 0; 184 185 virtual HRESULT STDMETHODCALLTYPE Begin_AddRef( 186 ) = 0; 187 188 virtual ULONG STDMETHODCALLTYPE Finish_AddRef( 189 ) = 0; 190 191 virtual HRESULT STDMETHODCALLTYPE Begin_Release( 192 ) = 0; 193 194 virtual ULONG STDMETHODCALLTYPE Finish_Release( 195 ) = 0; 196 197 }; 198 #ifdef __CRT_UUID_DECL 199 __CRT_UUID_DECL(AsyncIUnknown, 0x000e0000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46) 200 #endif 201 #else 202 typedef struct AsyncIUnknownVtbl { 203 BEGIN_INTERFACE 204 205 /*** IUnknown methods ***/ 206 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 207 AsyncIUnknown* This, 208 REFIID riid, 209 void **ppvObject); 210 211 ULONG (STDMETHODCALLTYPE *AddRef)( 212 AsyncIUnknown* This); 213 214 ULONG (STDMETHODCALLTYPE *Release)( 215 AsyncIUnknown* This); 216 217 /*** AsyncIUnknown methods ***/ 218 HRESULT (STDMETHODCALLTYPE *Begin_QueryInterface)( 219 AsyncIUnknown* This, 220 REFIID riid); 221 222 HRESULT (STDMETHODCALLTYPE *Finish_QueryInterface)( 223 AsyncIUnknown* This, 224 void **ppvObject); 225 226 HRESULT (STDMETHODCALLTYPE *Begin_AddRef)( 227 AsyncIUnknown* This); 228 229 ULONG (STDMETHODCALLTYPE *Finish_AddRef)( 230 AsyncIUnknown* This); 231 232 HRESULT (STDMETHODCALLTYPE *Begin_Release)( 233 AsyncIUnknown* This); 234 235 ULONG (STDMETHODCALLTYPE *Finish_Release)( 236 AsyncIUnknown* This); 237 238 END_INTERFACE 239 } AsyncIUnknownVtbl; 240 interface AsyncIUnknown { 241 CONST_VTBL AsyncIUnknownVtbl* lpVtbl; 242 }; 243 244 #ifdef COBJMACROS 245 #ifndef WIDL_C_INLINE_WRAPPERS 246 /*** IUnknown methods ***/ 247 #define AsyncIUnknown_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 248 #define AsyncIUnknown_AddRef(This) (This)->lpVtbl->AddRef(This) 249 #define AsyncIUnknown_Release(This) (This)->lpVtbl->Release(This) 250 /*** AsyncIUnknown methods ***/ 251 #define AsyncIUnknown_Begin_QueryInterface(This,riid) (This)->lpVtbl->Begin_QueryInterface(This,riid) 252 #define AsyncIUnknown_Finish_QueryInterface(This,ppvObject) (This)->lpVtbl->Finish_QueryInterface(This,ppvObject) 253 #define AsyncIUnknown_Begin_AddRef(This) (This)->lpVtbl->Begin_AddRef(This) 254 #define AsyncIUnknown_Finish_AddRef(This) (This)->lpVtbl->Finish_AddRef(This) 255 #define AsyncIUnknown_Begin_Release(This) (This)->lpVtbl->Begin_Release(This) 256 #define AsyncIUnknown_Finish_Release(This) (This)->lpVtbl->Finish_Release(This) 257 #else 258 /*** IUnknown methods ***/ 259 static FORCEINLINE HRESULT AsyncIUnknown_QueryInterface(AsyncIUnknown* This,REFIID riid,void **ppvObject) { 260 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 261 } 262 static FORCEINLINE ULONG AsyncIUnknown_AddRef(AsyncIUnknown* This) { 263 return This->lpVtbl->AddRef(This); 264 } 265 static FORCEINLINE ULONG AsyncIUnknown_Release(AsyncIUnknown* This) { 266 return This->lpVtbl->Release(This); 267 } 268 /*** AsyncIUnknown methods ***/ 269 static FORCEINLINE HRESULT AsyncIUnknown_Begin_QueryInterface(AsyncIUnknown* This,REFIID riid) { 270 return This->lpVtbl->Begin_QueryInterface(This,riid); 271 } 272 static FORCEINLINE HRESULT AsyncIUnknown_Finish_QueryInterface(AsyncIUnknown* This,void **ppvObject) { 273 return This->lpVtbl->Finish_QueryInterface(This,ppvObject); 274 } 275 static FORCEINLINE HRESULT AsyncIUnknown_Begin_AddRef(AsyncIUnknown* This) { 276 return This->lpVtbl->Begin_AddRef(This); 277 } 278 static FORCEINLINE ULONG AsyncIUnknown_Finish_AddRef(AsyncIUnknown* This) { 279 return This->lpVtbl->Finish_AddRef(This); 280 } 281 static FORCEINLINE HRESULT AsyncIUnknown_Begin_Release(AsyncIUnknown* This) { 282 return This->lpVtbl->Begin_Release(This); 283 } 284 static FORCEINLINE ULONG AsyncIUnknown_Finish_Release(AsyncIUnknown* This) { 285 return This->lpVtbl->Finish_Release(This); 286 } 287 #endif 288 #endif 289 290 #endif 291 292 HRESULT STDMETHODCALLTYPE AsyncIUnknown_Begin_QueryInterface_Proxy( 293 AsyncIUnknown* This, 294 REFIID riid); 295 void __RPC_STUB AsyncIUnknown_Begin_QueryInterface_Stub( 296 IRpcStubBuffer* This, 297 IRpcChannelBuffer* pRpcChannelBuffer, 298 PRPC_MESSAGE pRpcMessage, 299 DWORD* pdwStubPhase); 300 HRESULT STDMETHODCALLTYPE AsyncIUnknown_Finish_QueryInterface_Proxy( 301 AsyncIUnknown* This, 302 void **ppvObject); 303 void __RPC_STUB AsyncIUnknown_Finish_QueryInterface_Stub( 304 IRpcStubBuffer* This, 305 IRpcChannelBuffer* pRpcChannelBuffer, 306 PRPC_MESSAGE pRpcMessage, 307 DWORD* pdwStubPhase); 308 HRESULT STDMETHODCALLTYPE AsyncIUnknown_Begin_AddRef_Proxy( 309 AsyncIUnknown* This); 310 void __RPC_STUB AsyncIUnknown_Begin_AddRef_Stub( 311 IRpcStubBuffer* This, 312 IRpcChannelBuffer* pRpcChannelBuffer, 313 PRPC_MESSAGE pRpcMessage, 314 DWORD* pdwStubPhase); 315 ULONG STDMETHODCALLTYPE AsyncIUnknown_Finish_AddRef_Proxy( 316 AsyncIUnknown* This); 317 void __RPC_STUB AsyncIUnknown_Finish_AddRef_Stub( 318 IRpcStubBuffer* This, 319 IRpcChannelBuffer* pRpcChannelBuffer, 320 PRPC_MESSAGE pRpcMessage, 321 DWORD* pdwStubPhase); 322 HRESULT STDMETHODCALLTYPE AsyncIUnknown_Begin_Release_Proxy( 323 AsyncIUnknown* This); 324 void __RPC_STUB AsyncIUnknown_Begin_Release_Stub( 325 IRpcStubBuffer* This, 326 IRpcChannelBuffer* pRpcChannelBuffer, 327 PRPC_MESSAGE pRpcMessage, 328 DWORD* pdwStubPhase); 329 ULONG STDMETHODCALLTYPE AsyncIUnknown_Finish_Release_Proxy( 330 AsyncIUnknown* This); 331 void __RPC_STUB AsyncIUnknown_Finish_Release_Stub( 332 IRpcStubBuffer* This, 333 IRpcChannelBuffer* pRpcChannelBuffer, 334 PRPC_MESSAGE pRpcMessage, 335 DWORD* pdwStubPhase); 336 337 #endif /* __AsyncIUnknown_INTERFACE_DEFINED__ */ 338 339 /***************************************************************************** 340 * IClassFactory interface 341 */ 342 #ifndef __IClassFactory_INTERFACE_DEFINED__ 343 #define __IClassFactory_INTERFACE_DEFINED__ 344 345 typedef IClassFactory *LPCLASSFACTORY; 346 DEFINE_GUID(IID_IClassFactory, 0x00000001, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); 347 #if defined(__cplusplus) && !defined(CINTERFACE) 348 MIDL_INTERFACE("00000001-0000-0000-c000-000000000046") 349 IClassFactory : public IUnknown 350 { 351 virtual HRESULT STDMETHODCALLTYPE CreateInstance( 352 IUnknown *pUnkOuter, 353 REFIID riid, 354 void **ppvObject) = 0; 355 356 virtual HRESULT STDMETHODCALLTYPE LockServer( 357 WINBOOL fLock) = 0; 358 359 }; 360 #ifdef __CRT_UUID_DECL 361 __CRT_UUID_DECL(IClassFactory, 0x00000001, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46) 362 #endif 363 #else 364 typedef struct IClassFactoryVtbl { 365 BEGIN_INTERFACE 366 367 /*** IUnknown methods ***/ 368 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 369 IClassFactory* This, 370 REFIID riid, 371 void **ppvObject); 372 373 ULONG (STDMETHODCALLTYPE *AddRef)( 374 IClassFactory* This); 375 376 ULONG (STDMETHODCALLTYPE *Release)( 377 IClassFactory* This); 378 379 /*** IClassFactory methods ***/ 380 HRESULT (STDMETHODCALLTYPE *CreateInstance)( 381 IClassFactory* This, 382 IUnknown *pUnkOuter, 383 REFIID riid, 384 void **ppvObject); 385 386 HRESULT (STDMETHODCALLTYPE *LockServer)( 387 IClassFactory* This, 388 WINBOOL fLock); 389 390 END_INTERFACE 391 } IClassFactoryVtbl; 392 interface IClassFactory { 393 CONST_VTBL IClassFactoryVtbl* lpVtbl; 394 }; 395 396 #ifdef COBJMACROS 397 #ifndef WIDL_C_INLINE_WRAPPERS 398 /*** IUnknown methods ***/ 399 #define IClassFactory_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 400 #define IClassFactory_AddRef(This) (This)->lpVtbl->AddRef(This) 401 #define IClassFactory_Release(This) (This)->lpVtbl->Release(This) 402 /*** IClassFactory methods ***/ 403 #define IClassFactory_CreateInstance(This,pUnkOuter,riid,ppvObject) (This)->lpVtbl->CreateInstance(This,pUnkOuter,riid,ppvObject) 404 #define IClassFactory_LockServer(This,fLock) (This)->lpVtbl->LockServer(This,fLock) 405 #else 406 /*** IUnknown methods ***/ 407 static FORCEINLINE HRESULT IClassFactory_QueryInterface(IClassFactory* This,REFIID riid,void **ppvObject) { 408 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 409 } 410 static FORCEINLINE ULONG IClassFactory_AddRef(IClassFactory* This) { 411 return This->lpVtbl->AddRef(This); 412 } 413 static FORCEINLINE ULONG IClassFactory_Release(IClassFactory* This) { 414 return This->lpVtbl->Release(This); 415 } 416 /*** IClassFactory methods ***/ 417 static FORCEINLINE HRESULT IClassFactory_CreateInstance(IClassFactory* This,IUnknown *pUnkOuter,REFIID riid,void **ppvObject) { 418 return This->lpVtbl->CreateInstance(This,pUnkOuter,riid,ppvObject); 419 } 420 static FORCEINLINE HRESULT IClassFactory_LockServer(IClassFactory* This,WINBOOL fLock) { 421 return This->lpVtbl->LockServer(This,fLock); 422 } 423 #endif 424 #endif 425 426 #endif 427 428 HRESULT STDMETHODCALLTYPE IClassFactory_RemoteCreateInstance_Proxy( 429 IClassFactory* This, 430 REFIID riid, 431 IUnknown **ppvObject); 432 void __RPC_STUB IClassFactory_RemoteCreateInstance_Stub( 433 IRpcStubBuffer* This, 434 IRpcChannelBuffer* pRpcChannelBuffer, 435 PRPC_MESSAGE pRpcMessage, 436 DWORD* pdwStubPhase); 437 HRESULT STDMETHODCALLTYPE IClassFactory_RemoteLockServer_Proxy( 438 IClassFactory* This, 439 WINBOOL fLock); 440 void __RPC_STUB IClassFactory_RemoteLockServer_Stub( 441 IRpcStubBuffer* This, 442 IRpcChannelBuffer* pRpcChannelBuffer, 443 PRPC_MESSAGE pRpcMessage, 444 DWORD* pdwStubPhase); 445 HRESULT CALLBACK IClassFactory_CreateInstance_Proxy( 446 IClassFactory* This, 447 IUnknown *pUnkOuter, 448 REFIID riid, 449 void **ppvObject); 450 HRESULT __RPC_STUB IClassFactory_CreateInstance_Stub( 451 IClassFactory* This, 452 REFIID riid, 453 IUnknown **ppvObject); 454 HRESULT CALLBACK IClassFactory_LockServer_Proxy( 455 IClassFactory* This, 456 WINBOOL fLock); 457 HRESULT __RPC_STUB IClassFactory_LockServer_Stub( 458 IClassFactory* This, 459 WINBOOL fLock); 460 461 #endif /* __IClassFactory_INTERFACE_DEFINED__ */ 462 463 /* Begin additional prototypes for all interfaces */ 464 465 466 /* End additional prototypes */ 467 468 #ifdef __cplusplus 469 } 470 #endif 471 472 #endif /* __unknwn_h__ */ 473