#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 55 of file genral_hooks.c.
56{
59 {
61 }
63}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Referenced by START_TEST().
◆ safe_str()
Definition at line 65 of file genral_hooks.c.
66{
71
75}
STRSAFEAPI StringCchPrintfA(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszFormat,...)
Referenced by START_TEST().
◆ START_TEST()
START_TEST |
( |
genral_hooks |
| ) |
|
Definition at line 77 of file genral_hooks.c.
78{
81
84 return;
85
89
90
91
93 {
96
98
100 {
102 continue;
103 }
104
106 ok(num_shims == expected_shims,
"Expected %u shims, got %u for %s\n",
108 for (
h = 0;
h <
min(num_shims, expected_shims); ++
h)
109 {
114 ok(lib == 0,
"Expected LibraryName to be %s, was: %s for %s\n",
116 ok(
fn == 0,
"Expected FunctionName to be %s, was: %s for %s\n",
118 }
119 if (num_shims > expected_shims)
120 {
121 for (
h = expected_shims;
h < num_shims; ++
h)
122 {
124
125 ok(0,
"Extra shim: %s!%s for %s\n",
127 }
128 }
129 else
130 {
131 for (
h = num_shims;
h < expected_shims; ++
h)
132 {
134
135 ok(0,
"Missing shim: %s!%s for %s\n",
137 }
138 }
139 }
140}
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)
static DWORD count_shims(expect_shim_data *data)
static const char * safe_str(const char *ptr)
static DWORD g_WinVersion
GLfloat GLfloat GLfloat GLfloat h
struct task_struct * current
static tGETHOOKAPIS pGetHookAPIs
ULONG dwOSVersionInfoSize
static GLenum _GLUfuncptr fn
◆ data
Initial value:=
{
{
{
{ "KERNEL32.DLL", "CreateProcessW" },
}
},
{
L"AddProcessParametersFlags",
0,
},
{
0,
},
}
#define _WIN32_WINNT_WIN8
Definition at line 34 of file genral_hooks.c.
◆ g_WinVersion