Triditizer
|
#include <windows.h>
#include "../Detours-1.5/include/detours.h"
#include "main.h"
#include "d3d9dev.h"
#include "logging.h"
Macros | |
#define | WIN32_LEAN_AND_MEAN |
#define | WIN32_EXTRA_LEAN |
Typedefs | |
typedef HRESULT(WINAPI * | tCreateDevice) (LPDIRECT3D9, UINT, D3DDEVTYPE, HWND, DWORD, D3DPRESENT_PARAMETERS *, IDirect3DDevice9 **) |
typedef IDirect3D9 *(APIENTRY * | tDirect3DCreate9) (UINT) |
Functions | |
LRESULT CALLBACK | MsgProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
void | DX_Init (DWORD *table) |
HRESULT APIENTRY | myCreateDevice (LPDIRECT3D9 pd3dint, UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DDevice9 **ppReturnedDeviceInterface) |
IDirect3D9 *APIENTRY | myDirect3DCreate9 (UINT SDKVersion) |
DWORD WINAPI | HookD3D9 (LPVOID) |
BOOL WINAPI | DllMain (HMODULE hDll, DWORD dwReason, LPVOID) |
#define WIN32_EXTRA_LEAN |
#define WIN32_LEAN_AND_MEAN |
typedef HRESULT(WINAPI * tCreateDevice) (LPDIRECT3D9, UINT, D3DDEVTYPE, HWND, DWORD, D3DPRESENT_PARAMETERS *, IDirect3DDevice9 **) |
typedef IDirect3D9*(APIENTRY * tDirect3DCreate9) (UINT) |
BOOL WINAPI DllMain | ( | HMODULE | hDll, |
DWORD | dwReason, | ||
LPVOID | |||
) |
void DX_Init | ( | DWORD * | table | ) |
DWORD WINAPI HookD3D9 | ( | LPVOID | ) |
LRESULT CALLBACK MsgProc | ( | HWND | hwnd, |
UINT | uMsg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
HRESULT APIENTRY myCreateDevice | ( | LPDIRECT3D9 | pd3dint, |
UINT | Adapter, | ||
D3DDEVTYPE | DeviceType, | ||
HWND | hFocusWindow, | ||
DWORD | BehaviorFlags, | ||
D3DPRESENT_PARAMETERS * | pPresentationParameters, | ||
IDirect3DDevice9 ** | ppReturnedDeviceInterface | ||
) |
IDirect3D9* APIENTRY myDirect3DCreate9 | ( | UINT | SDKVersion | ) |
tAddRef oAddRef |
tBeginScene oBeginScene |
tBeginStateBlock oBeginStateBlock |
tClear oClear |
tColorFill oColorFill |
tCreateAdditionalSwapChain oCreateAdditionalSwapChain |
tCreateCubeTexture oCreateCubeTexture |
tCreateDepthStencilSurface oCreateDepthStencilSurface |
tCreateDevice oCreateDevice |
tCreateIndexBuffer oCreateIndexBuffer |
tCreateOffscreenPlainSurface oCreateOffscreenPlainSurface |
tCreatePixelShader oCreatePixelShader |
tCreateQuery oCreateQuery |
tCreateRenderTarget oCreateRenderTarget |
tCreateStateBlock oCreateStateBlock |
tCreateTexture oCreateTexture |
tCreateVertexBuffer oCreateVertexBuffer |
tCreateVertexDeclaration oCreateVertexDeclaration |
tCreateVertexShader oCreateVertexShader |
tCreateVolumeTexture oCreateVolumeTexture |
tDeletePatch oDeletePatch |
tDirect3DCreate9 oDirect3DCreate9 |
tDrawIndexedPrimitive oDrawIndexedPrimitive |
tDrawIndexedPrimitiveUP oDrawIndexedPrimitiveUP |
tDrawPrimitive oDrawPrimitive |
tDrawPrimitiveUP oDrawPrimitiveUP |
tDrawRectPatch oDrawRectPatch |
tDrawTriPatch oDrawTriPatch |
tEndScene oEndScene |
tEndStateBlock oEndStateBlock |
tEvictManagedResources oEvictManagedResources |
tGetAvailableTextureMem oGetAvailableTextureMem |
tGetBackBuffer oGetBackBuffer |
tGetClipPlane oGetClipPlane |
tGetClipStatus oGetClipStatus |
tGetCreationParameters oGetCreationParameters |
tGetCurrentTexturePalette oGetCurrentTexturePalette |
tGetDepthStencilSurface oGetDepthStencilSurface |
tGetDeviceCaps oGetDeviceCaps |
tGetDirect3D oGetDirect3D |
tGetDisplayMode oGetDisplayMode |
tGetFrontBufferData oGetFrontBufferData |
tGetFVF oGetFVF |
tGetGammaRamp oGetGammaRamp |
tGetIndices oGetIndices |
tGetLight oGetLight |
tGetLightEnable oGetLightEnable |
tGetMaterial oGetMaterial |
tGetNPatchMode oGetNPatchMode |
tGetNumberOfSwapChains oGetNumberOfSwapChains |
tGetPaletteEntries oGetPaletteEntries |
tGetPixelShader oGetPixelShader |
tGetPixelShaderConstantB oGetPixelShaderConstantB |
tGetPixelShaderConstantF oGetPixelShaderConstantF |
tGetPixelShaderConstantI oGetPixelShaderConstantI |
tGetRasterStatus oGetRasterStatus |
tGetRenderState oGetRenderState |
tGetRenderTarget oGetRenderTarget |
tGetRenderTargetData oGetRenderTargetData |
tGetSamplerState oGetSamplerState |
tGetScissorRect oGetScissorRect |
tGetSoftwareVertexProcessing oGetSoftwareVertexProcessing |
tGetStreamSource oGetStreamSource |
tGetStreamSourceFreq oGetStreamSourceFreq |
tGetSwapChain oGetSwapChain |
tGetTexture oGetTexture |
tGetTextureStageState oGetTextureStageState |
tGetTransform oGetTransform |
tGetVertexDeclaration oGetVertexDeclaration |
tGetVertexShader oGetVertexShader |
tGetVertexShaderConstantB oGetVertexShaderConstantB |
tGetVertexShaderConstantF oGetVertexShaderConstantF |
tGetVertexShaderConstantI oGetVertexShaderConstantI |
tGetViewport oGetViewport |
tLightEnable oLightEnable |
tMultiplyTransform oMultiplyTransform |
tPresent oPresent |
tProcessVertices oProcessVertices |
tQueryInterface oQueryInterface |
tRelease oRelease |
tReset oReset |
tSetClipPlane oSetClipPlane |
tSetClipStatus oSetClipStatus |
tSetCurrentTexturePalette oSetCurrentTexturePalette |
tSetCursorPosition oSetCursorPosition |
tSetCursorProperties oSetCursorProperties |
tSetDepthStencilSurface oSetDepthStencilSurface |
tSetDialogBoxMode oSetDialogBoxMode |
tSetFVF oSetFVF |
tSetGammaRamp oSetGammaRamp |
tSetIndices oSetIndices |
tSetLight oSetLight |
tSetMaterial oSetMaterial |
tSetNPatchMode oSetNPatchMode |
tSetPaletteEntries oSetPaletteEntries |
tSetPixelShader oSetPixelShader |
tSetPixelShaderConstantB oSetPixelShaderConstantB |
tSetPixelShaderConstantF oSetPixelShaderConstantF |
tSetPixelShaderConstantI oSetPixelShaderConstantI |
tSetRenderState oSetRenderState |
tSetRenderTarget oSetRenderTarget |
tSetSamplerState oSetSamplerState |
tSetScissorRect oSetScissorRect |
tSetSoftwareVertexProcessing oSetSoftwareVertexProcessing |
tSetStreamSource oSetStreamSource |
tSetStreamSourceFreq oSetStreamSourceFreq |
tSetTexture oSetTexture |
tSetTextureStageState oSetTextureStageState |
tSetTransform oSetTransform |
tSetVertexDeclaration oSetVertexDeclaration |
tSetVertexShader oSetVertexShader |
tSetVertexShaderConstantB oSetVertexShaderConstantB |
tSetVertexShaderConstantF oSetVertexShaderConstantF |
tSetVertexShaderConstantI oSetVertexShaderConstantI |
tSetViewport oSetViewport |
tShowCursor oShowCursor |
tStretchRect oStretchRect |
tTestCooperativeLevel oTestCooperativeLevel |
tUpdateSurface oUpdateSurface |
tUpdateTexture oUpdateTexture |
tValidateDevice oValidateDevice |