diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-02 16:39:36 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-02 16:39:36 -0800 |
| commit | 6c8ae19be66cee247980a48e736a4e05d14de179 (patch) | |
| tree | d860767907bf0cbe17ec66422e11bea700cf56d9 /contrib/DirectX-Headers-1.618.2/include/wsl/stubs/unknwnbase.h | |
| parent | 8f594c8ebd11f0e5f8a0c6369c3fe7383d250cbe (diff) | |
Diffstat (limited to 'contrib/DirectX-Headers-1.618.2/include/wsl/stubs/unknwnbase.h')
| -rw-r--r-- | contrib/DirectX-Headers-1.618.2/include/wsl/stubs/unknwnbase.h | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/contrib/DirectX-Headers-1.618.2/include/wsl/stubs/unknwnbase.h b/contrib/DirectX-Headers-1.618.2/include/wsl/stubs/unknwnbase.h new file mode 100644 index 0000000..7a54651 --- /dev/null +++ b/contrib/DirectX-Headers-1.618.2/include/wsl/stubs/unknwnbase.h | |||
| @@ -0,0 +1,124 @@ | |||
| 1 | /*------------------------------------------------------------------------------------- | ||
| 2 | * | ||
| 3 | * Copyright (c) Microsoft Corporation | ||
| 4 | * Licensed under the MIT license | ||
| 5 | * | ||
| 6 | *-------------------------------------------------------------------------------------*/ | ||
| 7 | |||
| 8 | /* this ALWAYS GENERATED file contains the definitions for the interfaces */ | ||
| 9 | |||
| 10 | /* File created by MIDL compiler version 8.01.0627 */ | ||
| 11 | |||
| 12 | /* verify that the <rpcndr.h> version is high enough to compile this file*/ | ||
| 13 | #ifndef __REQUIRED_RPCNDR_H_VERSION__ | ||
| 14 | #define __REQUIRED_RPCNDR_H_VERSION__ 500 | ||
| 15 | #endif | ||
| 16 | |||
| 17 | /* verify that the <rpcsal.h> version is high enough to compile this file*/ | ||
| 18 | #ifndef __REQUIRED_RPCSAL_H_VERSION__ | ||
| 19 | #define __REQUIRED_RPCSAL_H_VERSION__ 100 | ||
| 20 | #endif | ||
| 21 | |||
| 22 | #include "rpc.h" | ||
| 23 | #include "rpcndr.h" | ||
| 24 | |||
| 25 | #ifndef __RPCNDR_H_VERSION__ | ||
| 26 | #error this stub requires an updated version of <rpcndr.h> | ||
| 27 | #endif /* __RPCNDR_H_VERSION__ */ | ||
| 28 | |||
| 29 | #ifndef COM_NO_WINDOWS_H | ||
| 30 | #include "windows.h" | ||
| 31 | #include "ole2.h" | ||
| 32 | #endif /*COM_NO_WINDOWS_H*/ | ||
| 33 | |||
| 34 | #ifndef __unknwnbase_h__ | ||
| 35 | #define __unknwnbase_h__ | ||
| 36 | |||
| 37 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) | ||
| 38 | #pragma once | ||
| 39 | #endif | ||
| 40 | |||
| 41 | /* Forward Declarations */ | ||
| 42 | |||
| 43 | #ifndef __IUnknown_FWD_DEFINED__ | ||
| 44 | #define __IUnknown_FWD_DEFINED__ | ||
| 45 | typedef interface IUnknown IUnknown; | ||
| 46 | |||
| 47 | #endif /* __IUnknown_FWD_DEFINED__ */ | ||
| 48 | |||
| 49 | #ifndef __IUnknown_INTERFACE_DEFINED__ | ||
| 50 | #define __IUnknown_INTERFACE_DEFINED__ | ||
| 51 | |||
| 52 | /* interface IUnknown */ | ||
| 53 | /* [unique][uuid][object][local] */ | ||
| 54 | |||
| 55 | typedef /* [unique] */ IUnknown *LPUNKNOWN; | ||
| 56 | |||
| 57 | EXTERN_C const IID IID_IUnknown; | ||
| 58 | |||
| 59 | #if defined(__cplusplus) && !defined(CINTERFACE) | ||
| 60 | extern "C++" | ||
| 61 | { | ||
| 62 | MIDL_INTERFACE("00000000-0000-0000-c000-000000000046") | ||
| 63 | IUnknown | ||
| 64 | { | ||
| 65 | BEGIN_INTERFACE | ||
| 66 | |||
| 67 | virtual HRESULT STDMETHODCALLTYPE QueryInterface( | ||
| 68 | REFIID riid, | ||
| 69 | void **ppvObject) = 0; | ||
| 70 | |||
| 71 | virtual ULONG STDMETHODCALLTYPE AddRef() = 0; | ||
| 72 | |||
| 73 | virtual ULONG STDMETHODCALLTYPE Release() = 0; | ||
| 74 | |||
| 75 | template <class Q> | ||
| 76 | HRESULT | ||
| 77 | STDMETHODCALLTYPE | ||
| 78 | QueryInterface(_COM_Outptr_ Q * *pp) | ||
| 79 | { | ||
| 80 | return QueryInterface(__uuidof(Q), (void **)pp); | ||
| 81 | } | ||
| 82 | END_INTERFACE | ||
| 83 | }; | ||
| 84 | } | ||
| 85 | #ifdef __CRT_UUID_DECL | ||
| 86 | __CRT_UUID_DECL(IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46) | ||
| 87 | #endif | ||
| 88 | #else | ||
| 89 | typedef struct IUnknownVtbl { | ||
| 90 | BEGIN_INTERFACE | ||
| 91 | |||
| 92 | /*** IUnknown methods ***/ | ||
| 93 | HRESULT (STDMETHODCALLTYPE *QueryInterface)( | ||
| 94 | IUnknown *This, | ||
| 95 | REFIID riid, | ||
| 96 | void **ppvObject); | ||
| 97 | |||
| 98 | ULONG (STDMETHODCALLTYPE *AddRef)( | ||
| 99 | IUnknown *This); | ||
| 100 | |||
| 101 | ULONG (STDMETHODCALLTYPE *Release)( | ||
| 102 | IUnknown *This); | ||
| 103 | |||
| 104 | END_INTERFACE | ||
| 105 | } IUnknownVtbl; | ||
| 106 | |||
| 107 | interface IUnknown { | ||
| 108 | CONST_VTBL IUnknownVtbl* lpVtbl; | ||
| 109 | }; | ||
| 110 | |||
| 111 | #ifdef COBJMACROS | ||
| 112 | /*** IUnknown methods ***/ | ||
| 113 | #define IUnknown_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) | ||
| 114 | #define IUnknown_AddRef(This) (This)->lpVtbl->AddRef(This) | ||
| 115 | #define IUnknown_Release(This) (This)->lpVtbl->Release(This) | ||
| 116 | #endif | ||
| 117 | |||
| 118 | #endif | ||
| 119 | |||
| 120 | #endif /* __IUnknown_INTERFACE_DEFINED__ */ | ||
| 121 | |||
| 122 | DEFINE_GUID(IID_IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); | ||
| 123 | |||
| 124 | #endif /* __unknwnbase_h__ */ | ||
