HydraHook
Direct3D and Core Audio hooking library for Windows
Loading...
Searching...
No Matches
DXGI.h
Go to the documentation of this file.
1/*
2MIT License
3
4Copyright (c) 2018-2026 Benjamin Höglinger-Stelzer
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in all
14copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22SOFTWARE.
23*/
24
34
35#pragma once
36
37namespace DXGIHooking
38{
39 namespace Factory
40 {
41 inline constexpr int CreateSwapChain = 10;
42 inline constexpr int CreateSwapChainForHwnd = 15;
43 }
44
46 enum DXGISwapChainVTbl : short
47 {
48 /* IUnknown */
50 AddRef = 1,
52
53 // IDXGIObject
58
59 // IDXGIDeviceSubObject
61
62 // IDXGISwapChain
67 GetDesc = 12,
73 };
74
75 namespace DXGI1
76 {
119 }
120
133
145
147 class DXGI
148 {
149 public:
150 static const int SwapChainVTableElements = 18;
151 static const int SwapChain1VTableElements = 29;
152 static const int SwapChain3VTableElements = 38;
153 };
154}
DXGI vtable size constants.
Definition DXGI.h:148
static const int SwapChainVTableElements
Definition DXGI.h:150
static const int SwapChain1VTableElements
Definition DXGI.h:151
static const int SwapChain3VTableElements
Definition DXGI.h:152
DXGISwapChain1VTbl
IDXGISwapChain1 vtable indices (extends IDXGISwapChain).
Definition DXGI.h:79
@ SetPrivateDataInterface
Definition DXGI.h:87
@ IsTemporaryMonoSupported
Definition DXGI.h:112
DXGISwapChain2VTbl
IDXGISwapChain2 vtable indices (extends IDXGISwapChain1).
Definition DXGI.h:125
@ SetMaximumFrameLatency
Definition DXGI.h:128
@ GetFrameLatencyWaitableObject
Definition DXGI.h:130
@ GetMaximumFrameLatency
Definition DXGI.h:129
DXGISwapChain3VTbl
IDXGISwapChain3 vtable indices (extends IDXGISwapChain2).
Definition DXGI.h:138
@ CheckColorSpaceSupport
Definition DXGI.h:140
@ GetCurrentBackBufferIndex
Definition DXGI.h:139
constexpr int CreateSwapChainForHwnd
Definition DXGI.h:42
constexpr int CreateSwapChain
Definition DXGI.h:41
DXGISwapChainVTbl
IDXGISwapChain vtable indices.
Definition DXGI.h:47
@ GetDesc
Definition DXGI.h:67
@ SetPrivateDataInterface
Definition DXGI.h:55
@ SetPrivateData
Definition DXGI.h:54
@ AddRef
Definition DXGI.h:50
@ ResizeTarget
Definition DXGI.h:69
@ SetFullscreenState
Definition DXGI.h:65
@ GetBuffer
Definition DXGI.h:64
@ GetLastPresentCount
Definition DXGI.h:72
@ QueryInterface
Definition DXGI.h:49
@ GetParent
Definition DXGI.h:57
@ GetDevice
Definition DXGI.h:60
@ GetPrivateData
Definition DXGI.h:56
@ Present
Definition DXGI.h:63
@ ResizeBuffers
Definition DXGI.h:68
@ GetFullscreenState
Definition DXGI.h:66
@ GetFrameStatistics
Definition DXGI.h:71
@ Release
Definition DXGI.h:51
@ GetContainingOutput
Definition DXGI.h:70