37 L"ForceDXSetupSuccess",
40 {
"KERNEL32.DLL",
"LoadLibraryA" },
41 {
"KERNEL32.DLL",
"LoadLibraryW" },
42 {
"KERNEL32.DLL",
"LoadLibraryExA" },
43 {
"KERNEL32.DLL",
"LoadLibraryExW" },
44 {
"KERNEL32.DLL",
"GetProcAddress" },
45 {
"KERNEL32.DLL",
"FreeLibrary" },
49 L"VerifyVersionInfoLite",
52 {
"KERNEL32.DLL",
"VerifyVersionInfoA" },
53 {
"KERNEL32.DLL",
"VerifyVersionInfoW" },
58 L"VeRiFyVeRsIoNInFoLiTe",
61 {
"KERNEL32.DLL",
"VerifyVersionInfoA" },
62 {
"KERNEL32.DLL",
"VerifyVersionInfoW" },
118 ok(num_shims == expected_shims,
"Expected %u shims, got %u for %s\n",
120 for (
h = 0;
h <
min(num_shims, expected_shims); ++
h)
126 ok(lib == 0,
"Expected LibraryName to be %s, was: %s for %s\n",
128 ok(
fn == 0,
"Expected FunctionName to be %s, was: %s for %s\n",
131 if (num_shims > expected_shims)
133 for (
h = expected_shims;
h < num_shims; ++
h)
137 ok(0,
"Extra shim: %s!%s for %s\n",
143 for (
h = num_shims;
h < expected_shims; ++
h)
147 ok(0,
"Missing shim: %s!%s for %s\n",
PHOOKAPI(WINAPI * tGETHOOKAPIS)(LPCSTR szCommandLine, LPCWSTR wszShimName, PDWORD pdwHookCount)
tGETHOOKAPIS LoadShimDLL2(PCWSTR ShimDll)
NTSTATUS NTAPI RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation)
int WINAPI lstrcmpA(LPCSTR str1, LPCSTR str2)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLfloat GLfloat GLfloat GLfloat h
static DWORD count_shims(expect_shim_data *data)
static const char * safe_str(const char *ptr)
static DWORD g_WinVersion
struct task_struct * current
static tGETHOOKAPIS pGetHookAPIs
#define _WIN32_WINNT_VISTA
STRSAFEAPI StringCchPrintfA(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszFormat,...)
ULONG dwOSVersionInfoSize
expect_shim_hook hooks[4]
static GLenum _GLUfuncptr fn