#include <ntstatus.h>
#include <windows.h>
#include <ndk/rtlfuncs.h>
#include <strsafe.h>
#include "wine/test.h"
#include "appshim_apitest.h"
Go to the source code of this file.
◆ WIN32_NO_STATUS
◆ expect_shim_data
◆ expect_shim_hook
◆ count_shims()
Definition at line 67 of file layer_hooks.c.
68{
71 {
73 }
75}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Referenced by START_TEST().
◆ safe_str()
Definition at line 77 of file layer_hooks.c.
78{
83
87}
STRSAFEAPI StringCchPrintfA(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszFormat,...)
Referenced by START_TEST().
◆ START_TEST()
START_TEST |
( |
layer_hooks |
| ) |
|
Definition at line 89 of file layer_hooks.c.
90{
93
96 return;
97
101
102
103
105 {
108
110
112 {
114 continue;
115 }
116
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)
121 {
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",
130 }
131 if (num_shims > expected_shims)
132 {
133 for (
h = expected_shims;
h < num_shims; ++
h)
134 {
136
137 ok(0,
"Extra shim: %s!%s for %s\n",
139 }
140 }
141 else
142 {
143 for (
h = num_shims;
h < expected_shims; ++
h)
144 {
146
147 ok(0,
"Missing shim: %s!%s for %s\n",
149 }
150 }
151 }
152}
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)
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
ULONG dwOSVersionInfoSize
static GLenum _GLUfuncptr fn
◆ data
◆ g_WinVersion