HydraHook
Direct3D and Core Audio hooking library for Windows
Toggle main menu visibility
Loading...
Searching...
No Matches
Direct3D9Ex.h
Go to the documentation of this file.
1
/*
2
MIT License
3
4
Copyright (c) 2018-2026 Benjamin Höglinger-Stelzer
5
6
Permission is hereby granted, free of charge, to any person obtaining a copy
7
of this software and associated documentation files (the "Software"), to deal
8
in the Software without restriction, including without limitation the rights
9
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
copies of the Software, and to permit persons to whom the Software is
11
furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in all
14
copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
SOFTWARE.
23
*/
24
30
31
#pragma once
32
33
#include <d3d9.h>
34
#include "
Direct3DBase.h
"
35
36
namespace
Direct3D9Hooking
37
{
38
enum
Direct3DDevice9ExFunctionOrdinals
:
short
39
{
40
SetConvolutionMonoKernel
= 119,
41
ComposeRects
= 120,
42
PresentEx
= 121,
43
GetGPUThreadPriority
= 122,
44
SetGPUThreadPriority
= 123,
45
WaitForVBlank
= 124,
46
CheckResourceResidency
= 125,
47
SetMaximumFrameLatency
= 126,
48
GetMaximumFrameLatency
= 127,
49
CheckDeviceState_
= 128,
50
CreateRenderTargetEx
= 129,
51
CreateOffscreenPlainSurfaceEx
= 130,
52
CreateDepthStencilSurfaceEx
= 131,
53
ResetEx
= 132,
54
GetDisplayModeEx
= 133,
55
};
56
57
class
Direct3D9Ex
:
public
Direct3DHooking::Direct3DBase
58
{
59
IDirect3D9Ex* d3d9_ex;
60
IDirect3DDevice9Ex* d3d9_device_ex;
61
public
:
62
Direct3D9Ex
();
63
~Direct3D9Ex
();
64
static
const
int
VTableElements
= 134;
65
66
std::vector<size_t>
vtable
()
const override
;
67
};
68
}
Direct3DBase.h
Abstract base for Direct3D version-specific hook implementations.
Direct3D9Hooking::Direct3D9Ex::vtable
std::vector< size_t > vtable() const override
Returns vtable indices for hookable methods (Present, Reset, etc.).
Definition
Direct3D9Ex.cpp:91
Direct3D9Hooking::Direct3D9Ex::VTableElements
static const int VTableElements
Definition
Direct3D9Ex.h:64
Direct3D9Hooking::Direct3D9Ex::Direct3D9Ex
Direct3D9Ex()
Definition
Direct3D9Ex.cpp:33
Direct3DHooking::Direct3DBase
Abstract base for Direct3D hook implementations.
Definition
Direct3DBase.h:48
Direct3D9Hooking
Definition
Direct3D9.h:36
Direct3D9Hooking::Direct3DDevice9ExFunctionOrdinals
Direct3DDevice9ExFunctionOrdinals
Definition
Direct3D9Ex.h:39
Direct3D9Hooking::ResetEx
@ ResetEx
Definition
Direct3D9Ex.h:53
Direct3D9Hooking::GetGPUThreadPriority
@ GetGPUThreadPriority
Definition
Direct3D9Ex.h:43
Direct3D9Hooking::SetConvolutionMonoKernel
@ SetConvolutionMonoKernel
Definition
Direct3D9Ex.h:40
Direct3D9Hooking::SetMaximumFrameLatency
@ SetMaximumFrameLatency
Definition
Direct3D9Ex.h:47
Direct3D9Hooking::CreateDepthStencilSurfaceEx
@ CreateDepthStencilSurfaceEx
Definition
Direct3D9Ex.h:52
Direct3D9Hooking::PresentEx
@ PresentEx
Definition
Direct3D9Ex.h:42
Direct3D9Hooking::SetGPUThreadPriority
@ SetGPUThreadPriority
Definition
Direct3D9Ex.h:44
Direct3D9Hooking::ComposeRects
@ ComposeRects
Definition
Direct3D9Ex.h:41
Direct3D9Hooking::CheckResourceResidency
@ CheckResourceResidency
Definition
Direct3D9Ex.h:46
Direct3D9Hooking::CreateRenderTargetEx
@ CreateRenderTargetEx
Definition
Direct3D9Ex.h:50
Direct3D9Hooking::CreateOffscreenPlainSurfaceEx
@ CreateOffscreenPlainSurfaceEx
Definition
Direct3D9Ex.h:51
Direct3D9Hooking::WaitForVBlank
@ WaitForVBlank
Definition
Direct3D9Ex.h:45
Direct3D9Hooking::GetMaximumFrameLatency
@ GetMaximumFrameLatency
Definition
Direct3D9Ex.h:48
Direct3D9Hooking::GetDisplayModeEx
@ GetDisplayModeEx
Definition
Direct3D9Ex.h:54
Direct3D9Hooking::CheckDeviceState_
@ CheckDeviceState_
Definition
Direct3D9Ex.h:49
src
HydraHook
Game
Hook
Direct3D9Ex.h
Generated by
1.18.0