diff options
Diffstat (limited to 'src/libs/dxvk-native-1.9.2a/include/native/windows/unknwn.h')
-rw-r--r-- | src/libs/dxvk-native-1.9.2a/include/native/windows/unknwn.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libs/dxvk-native-1.9.2a/include/native/windows/unknwn.h b/src/libs/dxvk-native-1.9.2a/include/native/windows/unknwn.h new file mode 100644 index 00000000..124d1f0e --- /dev/null +++ b/src/libs/dxvk-native-1.9.2a/include/native/windows/unknwn.h @@ -0,0 +1,18 @@ +#pragma once + +#include "windows_base.h" + +DEFINE_GUID(IID_IUnknown, 0x00000000,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46); /* vbox: added ';' */ +struct IUnknown { + +public: + + virtual HRESULT QueryInterface(REFIID riid, void** ppvObject) = 0; + + virtual ULONG AddRef() = 0; + virtual ULONG Release() = 0; + +}; +DECLARE_UUIDOF_HELPER(IUnknown, 0x00000000,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46) + +#define IID_PPV_ARGS(ppType) __uuidof(decltype(**(ppType))), [](auto** pp) { (void)static_cast<IUnknown*>(*pp); return reinterpret_cast<void**>(pp); }(ppType) |