Triditizer
main.cpp File Reference
#include <windows.h>
#include "../Detours-1.5/include/detours.h"
#include "main.h"
#include "d3d9dev.h"
#include "logging.h"
Include dependency graph for main.cpp:

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)
 

Variables

tQueryInterface oQueryInterface
 
tAddRef oAddRef
 
tRelease oRelease
 
tTestCooperativeLevel oTestCooperativeLevel
 
tGetAvailableTextureMem oGetAvailableTextureMem
 
tEvictManagedResources oEvictManagedResources
 
tGetDirect3D oGetDirect3D
 
tGetDeviceCaps oGetDeviceCaps
 
tGetDisplayMode oGetDisplayMode
 
tGetCreationParameters oGetCreationParameters
 
tSetCursorProperties oSetCursorProperties
 
tSetCursorPosition oSetCursorPosition
 
tShowCursor oShowCursor
 
tCreateAdditionalSwapChain oCreateAdditionalSwapChain
 
tGetSwapChain oGetSwapChain
 
tGetNumberOfSwapChains oGetNumberOfSwapChains
 
tReset oReset
 
tPresent oPresent
 
tGetBackBuffer oGetBackBuffer
 
tGetRasterStatus oGetRasterStatus
 
tSetDialogBoxMode oSetDialogBoxMode
 
tSetGammaRamp oSetGammaRamp
 
tGetGammaRamp oGetGammaRamp
 
tCreateTexture oCreateTexture
 
tCreateVolumeTexture oCreateVolumeTexture
 
tCreateCubeTexture oCreateCubeTexture
 
tCreateVertexBuffer oCreateVertexBuffer
 
tCreateIndexBuffer oCreateIndexBuffer
 
tCreateRenderTarget oCreateRenderTarget
 
tCreateDepthStencilSurface oCreateDepthStencilSurface
 
tUpdateSurface oUpdateSurface
 
tUpdateTexture oUpdateTexture
 
tGetRenderTargetData oGetRenderTargetData
 
tGetFrontBufferData oGetFrontBufferData
 
tStretchRect oStretchRect
 
tColorFill oColorFill
 
tCreateOffscreenPlainSurface oCreateOffscreenPlainSurface
 
tSetRenderTarget oSetRenderTarget
 
tGetRenderTarget oGetRenderTarget
 
tSetDepthStencilSurface oSetDepthStencilSurface
 
tGetDepthStencilSurface oGetDepthStencilSurface
 
tBeginScene oBeginScene
 
tEndScene oEndScene
 
tClear oClear
 
tSetTransform oSetTransform
 
tGetTransform oGetTransform
 
tMultiplyTransform oMultiplyTransform
 
tSetViewport oSetViewport
 
tGetViewport oGetViewport
 
tSetMaterial oSetMaterial
 
tGetMaterial oGetMaterial
 
tSetLight oSetLight
 
tGetLight oGetLight
 
tLightEnable oLightEnable
 
tGetLightEnable oGetLightEnable
 
tSetClipPlane oSetClipPlane
 
tGetClipPlane oGetClipPlane
 
tSetRenderState oSetRenderState
 
tGetRenderState oGetRenderState
 
tCreateStateBlock oCreateStateBlock
 
tBeginStateBlock oBeginStateBlock
 
tEndStateBlock oEndStateBlock
 
tSetClipStatus oSetClipStatus
 
tGetClipStatus oGetClipStatus
 
tGetTexture oGetTexture
 
tSetTexture oSetTexture
 
tGetTextureStageState oGetTextureStageState
 
tSetTextureStageState oSetTextureStageState
 
tGetSamplerState oGetSamplerState
 
tSetSamplerState oSetSamplerState
 
tValidateDevice oValidateDevice
 
tSetPaletteEntries oSetPaletteEntries
 
tGetPaletteEntries oGetPaletteEntries
 
tSetCurrentTexturePalette oSetCurrentTexturePalette
 
tGetCurrentTexturePalette oGetCurrentTexturePalette
 
tSetScissorRect oSetScissorRect
 
tGetScissorRect oGetScissorRect
 
tSetSoftwareVertexProcessing oSetSoftwareVertexProcessing
 
tGetSoftwareVertexProcessing oGetSoftwareVertexProcessing
 
tSetNPatchMode oSetNPatchMode
 
tGetNPatchMode oGetNPatchMode
 
tDrawPrimitive oDrawPrimitive
 
tDrawIndexedPrimitive oDrawIndexedPrimitive
 
tDrawPrimitiveUP oDrawPrimitiveUP
 
tDrawIndexedPrimitiveUP oDrawIndexedPrimitiveUP
 
tProcessVertices oProcessVertices
 
tCreateVertexDeclaration oCreateVertexDeclaration
 
tSetVertexDeclaration oSetVertexDeclaration
 
tGetVertexDeclaration oGetVertexDeclaration
 
tSetFVF oSetFVF
 
tGetFVF oGetFVF
 
tCreateVertexShader oCreateVertexShader
 
tSetVertexShader oSetVertexShader
 
tGetVertexShader oGetVertexShader
 
tSetVertexShaderConstantF oSetVertexShaderConstantF
 
tGetVertexShaderConstantF oGetVertexShaderConstantF
 
tSetVertexShaderConstantI oSetVertexShaderConstantI
 
tGetVertexShaderConstantI oGetVertexShaderConstantI
 
tSetVertexShaderConstantB oSetVertexShaderConstantB
 
tGetVertexShaderConstantB oGetVertexShaderConstantB
 
tSetStreamSource oSetStreamSource
 
tGetStreamSource oGetStreamSource
 
tSetStreamSourceFreq oSetStreamSourceFreq
 
tGetStreamSourceFreq oGetStreamSourceFreq
 
tSetIndices oSetIndices
 
tGetIndices oGetIndices
 
tCreatePixelShader oCreatePixelShader
 
tSetPixelShader oSetPixelShader
 
tGetPixelShader oGetPixelShader
 
tSetPixelShaderConstantF oSetPixelShaderConstantF
 
tGetPixelShaderConstantF oGetPixelShaderConstantF
 
tSetPixelShaderConstantI oSetPixelShaderConstantI
 
tGetPixelShaderConstantI oGetPixelShaderConstantI
 
tSetPixelShaderConstantB oSetPixelShaderConstantB
 
tGetPixelShaderConstantB oGetPixelShaderConstantB
 
tDrawRectPatch oDrawRectPatch
 
tDrawTriPatch oDrawTriPatch
 
tDeletePatch oDeletePatch
 
tCreateQuery oCreateQuery
 
tCreateDevice oCreateDevice
 
tDirect3DCreate9 oDirect3DCreate9
 

Macro Definition Documentation

#define WIN32_EXTRA_LEAN
#define WIN32_LEAN_AND_MEAN

Typedef Documentation

typedef HRESULT(WINAPI * tCreateDevice) (LPDIRECT3D9, UINT, D3DDEVTYPE, HWND, DWORD, D3DPRESENT_PARAMETERS *, IDirect3DDevice9 **)
typedef IDirect3D9*(APIENTRY * tDirect3DCreate9) (UINT)

Function Documentation

BOOL WINAPI DllMain ( HMODULE  hDll,
DWORD  dwReason,
LPVOID   
)

Here is the call graph for this function:

void DX_Init ( DWORD *  table)

Here is the call graph for this function:

DWORD WINAPI HookD3D9 ( LPVOID  )

Here is the call graph for this function:

Here is the caller graph for this function:

LRESULT CALLBACK MsgProc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Here is the caller graph for this function:

HRESULT APIENTRY myCreateDevice ( LPDIRECT3D9  pd3dint,
UINT  Adapter,
D3DDEVTYPE  DeviceType,
HWND  hFocusWindow,
DWORD  BehaviorFlags,
D3DPRESENT_PARAMETERS *  pPresentationParameters,
IDirect3DDevice9 **  ppReturnedDeviceInterface 
)

Here is the call graph for this function:

Here is the caller graph for this function:

IDirect3D9* APIENTRY myDirect3DCreate9 ( UINT  SDKVersion)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

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