58{
61 DWORD LoadDebugDllSize;
65 UINT NoDebugSDKVersion = SDKVersion & ~DX_D3D9_DEBUG;
66
67 LoadDebugDllSize = sizeof(LoadDebugDll);
69 {
70 if (0 != LoadDebugDll)
71 {
73
74 if (0 != hDebugDll)
75 {
77
78 return DebugDirect3DCreate9(SDKVersion);
79 }
80 }
81 }
82
83 if (NoDebugSDKVersion !=
D3D_SDK_VERSION && NoDebugSDKVersion != D3D9b_SDK_VERSION)
84 {
86 {
91 }
92
94 }
95
97
98 return D3D9Obj;
99}
IDirect3D9 *(WINAPI * LPDIRECT3DCREATE9)(UINT)
#define DEBUG_MESSAGE_BUFFER_SIZE
static LPCSTR D3dError_WrongSdkVersion
struct IDirect3D9 * LPDIRECT3D9
HRESULT CreateD3D9(OUT LPDIRECT3D9 *ppDirect3D9, UINT SDKVersion)
BOOL ReadRegistryValue(IN DWORD ValueType, IN LPCSTR ValueName, OUT LPBYTE DataBuffer, IN OUT LPDWORD DataBufferSize)
HRESULT SafeFormatString(OUT LPSTR Buffer, IN DWORD BufferSize, IN LPCSTR FormatString,...)
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
void WINAPI SHIM_OBJ_NAME() OutputDebugStringA(LPCSTR lpOutputString)