15#define DEBUG_MESSAGE_BUFFER_SIZE 512
20 "D3D ERROR: D3D header version mismatch.\n"
21 "The application was compiled against and will only work with "
22 "D3D_SDK_VERSION (%d), but the currently installed runtime is "
24 "Recompile the application against the appropriate SDK for the installed runtime.\n"
61 DWORD LoadDebugDllSize;
65 UINT NoDebugSDKVersion = SDKVersion & ~DX_D3D9_DEBUG;
67 LoadDebugDllSize =
sizeof(LoadDebugDll);
70 if (0 != LoadDebugDll)
78 return DebugDirect3DCreate9(SDKVersion);
83 if (NoDebugSDKVersion !=
D3D_SDK_VERSION && NoDebugSDKVersion != D3D9b_SDK_VERSION)
103 switch (ul_reason_for_call)
HRESULT WINAPI DebugSetMute(void)
HRESULT WINAPI PSGPError(void)
IDirect3D9 *(WINAPI * LPDIRECT3DCREATE9)(UINT)
HRESULT WINAPI Direct3DShaderValidatorCreate9(void)
#define DEBUG_MESSAGE_BUFFER_SIZE
HRESULT WINAPI DebugSetLevel(void)
static LPCSTR D3dError_WrongSdkVersion
IDirect3D9 *WINAPI Direct3DCreate9(UINT SDKVersion)
HRESULT WINAPI PSGPSampleTexture(void)
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
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 DLL_THREAD_DETACH
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
#define GetProcAddress(x, y)
#define DLL_THREAD_ATTACH
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
void WINAPI SHIM_OBJ_NAME() OutputDebugStringA(LPCSTR lpOutputString)