ReactOS 0.4.16-dev-533-gc7d1aa3
|
#include <ntstatus.h>
#include <windows.h>
#include <winternl.h>
#include "wine/test.h"
#include <strsafe.h>
#include "appshim_apitest.h"
Go to the source code of this file.
Classes | |
struct | VersionLieInfo |
Macros | |
#define | WIN32_NO_STATUS |
#define | FLAG_BUGGY_ServicePackMajorMinor 1 |
#define | FLAG_AlternateHookOrder 2 |
#define | verify_shima (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : verify_shima_imp |
#define | verify_shimw (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : verify_shimw_imp |
#define | verify_shim (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : verify_shim_imp |
Typedefs | |
typedef struct VersionLieInfo | VersionLieInfo |
typedef BOOL(WINAPI * | GETVERSIONEXAPROC) (LPOSVERSIONINFOEXA) |
typedef BOOL(WINAPI * | GETVERSIONEXWPROC) (LPOSVERSIONINFOEXW) |
typedef DWORD(WINAPI * | GETVERSIONPROC) (void) |
Functions | |
void | expect_shim_imp (PHOOKAPI hook, PCSTR library, PCSTR function, PCSTR shim, int *same) |
static void | verify_shima_imp (PHOOKAPI hook, const VersionLieInfo *info, PCSTR shim, int same) |
static void | verify_shimw_imp (PHOOKAPI hook, const VersionLieInfo *info, PCSTR shim, int same, int first_might_be_broken) |
static void | verify_shim_imp (PHOOKAPI hook, const VersionLieInfo *info, PCSTR shim, int same) |
static void | run_test (LPCSTR shim, const VersionLieInfo *info) |
DWORD | get_host_winver (void) |
BOOL | LoadShimDLL (PCWSTR ShimDll, HMODULE *module, tGETHOOKAPIS *ppGetHookAPIs) |
tGETHOOKAPIS | LoadShimDLL2 (PCWSTR ShimDll) |
START_TEST (versionlie) | |
#define FLAG_AlternateHookOrder 2 |
Definition at line 27 of file versionlie.c.
#define FLAG_BUGGY_ServicePackMajorMinor 1 |
Definition at line 26 of file versionlie.c.
#define verify_shim (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : verify_shim_imp |
Definition at line 207 of file versionlie.c.
#define verify_shima (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : verify_shima_imp |
Definition at line 205 of file versionlie.c.
#define verify_shimw (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : verify_shimw_imp |
Definition at line 206 of file versionlie.c.
#define WIN32_NO_STATUS |
Definition at line 9 of file versionlie.c.
typedef BOOL(WINAPI * GETVERSIONEXAPROC) (LPOSVERSIONINFOEXA) |
Definition at line 41 of file versionlie.c.
typedef BOOL(WINAPI * GETVERSIONEXWPROC) (LPOSVERSIONINFOEXW) |
Definition at line 42 of file versionlie.c.
Definition at line 43 of file versionlie.c.
typedef struct VersionLieInfo VersionLieInfo |
Definition at line 45 of file versionlie.c.
Definition at line 296 of file versionlie.c.
Referenced by START_TEST().
BOOL LoadShimDLL | ( | PCWSTR | ShimDll, |
HMODULE * | module, | ||
tGETHOOKAPIS * | ppGetHookAPIs | ||
) |
Definition at line 307 of file versionlie.c.
Referenced by LoadShimDLL2(), run_test(), and START_TEST().
tGETHOOKAPIS LoadShimDLL2 | ( | PCWSTR | ShimDll | ) |
Definition at line 369 of file versionlie.c.
Referenced by START_TEST().
|
static |
Definition at line 212 of file versionlie.c.
START_TEST | ( | versionlie | ) |
Definition at line 384 of file versionlie.c.
|
static |
Definition at line 192 of file versionlie.c.
|
static |
Definition at line 54 of file versionlie.c.
|
static |
Definition at line 119 of file versionlie.c.
VersionLieInfo g_Win10RTM = { 0x47ba000a, 10, 0, 18362, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 291 of file versionlie.c.
VersionLieInfo g_Win2000 = { 0x08930005, 5, 0, 2195, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 268 of file versionlie.c.
VersionLieInfo g_Win2000SP1 = { 0x08930005, 5, 0, 2195, VER_PLATFORM_WIN32_NT, 1, 0 } |
Definition at line 269 of file versionlie.c.
VersionLieInfo g_Win2000SP2 = { 0x08930005, 5, 0, 2195, VER_PLATFORM_WIN32_NT, 2, 0 } |
Definition at line 270 of file versionlie.c.
VersionLieInfo g_Win2000SP3 = { 0x08930005, 5, 0, 2195, VER_PLATFORM_WIN32_NT, 3, 0 } |
Definition at line 271 of file versionlie.c.
VersionLieInfo g_Win2k16RTM = { 0x3fab000a, 10, 0, 16299, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 293 of file versionlie.c.
VersionLieInfo g_Win2k19RTM = { 0x4563000a, 10, 0, 17763, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 294 of file versionlie.c.
VersionLieInfo g_Win2k3RTM = { 0x0ece0205, 5, 2, 3790, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 278 of file versionlie.c.
VersionLieInfo g_Win2k3SP1 = { 0x0ece0205, 5, 2, 3790, VER_PLATFORM_WIN32_NT, 1, 0 } |
Definition at line 279 of file versionlie.c.
VersionLieInfo g_Win7RTM = { 0x1db00106, 6, 1, 7600, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 285 of file versionlie.c.
VersionLieInfo g_Win7SP1 = { 0x1db10106, 6, 1, 7601, VER_PLATFORM_WIN32_NT, 1, 0 } |
Definition at line 286 of file versionlie.c.
VersionLieInfo g_Win81RTM = { 0x25800306, 6, 3, 9600, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 289 of file versionlie.c.
VersionLieInfo g_Win8RTM = { 0x23f00206, 6, 2, 9200, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 288 of file versionlie.c.
VersionLieInfo g_Win95 = { 0xC3B60004, 4, 0, 950, VER_PLATFORM_WIN32_WINDOWS, 0, 0, FLAG_BUGGY_ServicePackMajorMinor | FLAG_AlternateHookOrder } |
Definition at line 264 of file versionlie.c.
VersionLieInfo g_Win98 = { 0xC0000A04, 4, 10, 0x040A08AE, VER_PLATFORM_WIN32_WINDOWS, 0, 0, FLAG_BUGGY_ServicePackMajorMinor } |
Definition at line 266 of file versionlie.c.
VersionLieInfo g_WinNT4SP5 = { 0x05650004, 4, 0, 1381, VER_PLATFORM_WIN32_NT, 5, 0, FLAG_BUGGY_ServicePackMajorMinor } |
Definition at line 265 of file versionlie.c.
|
static |
Definition at line 24 of file versionlie.c.
Referenced by run_test(), and START_TEST().
VersionLieInfo g_WinVistaRTM = { 0x17700006, 6, 0, 6000, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 281 of file versionlie.c.
VersionLieInfo g_WinVistaSP1 = { 0x17710006, 6, 0, 6001, VER_PLATFORM_WIN32_NT, 1, 0 } |
Definition at line 282 of file versionlie.c.
VersionLieInfo g_WinVistaSP2 = { 0x17720006, 6, 0, 6002, VER_PLATFORM_WIN32_NT, 2, 0 } |
Definition at line 283 of file versionlie.c.
VersionLieInfo g_WinXP = { 0x0a280105, 5, 1, 2600, VER_PLATFORM_WIN32_NT, 0, 0 } |
Definition at line 273 of file versionlie.c.
VersionLieInfo g_WinXPSP1 = { 0x0a280105, 5, 1, 2600, VER_PLATFORM_WIN32_NT, 1, 0 } |
Definition at line 274 of file versionlie.c.
VersionLieInfo g_WinXPSP2 = { 0x0a280105, 5, 1, 2600, VER_PLATFORM_WIN32_NT, 2, 0 } |
Definition at line 275 of file versionlie.c.
VersionLieInfo g_WinXPSP3 = { 0x0a280105, 5, 1, 2600, VER_PLATFORM_WIN32_NT, 3, 0 } |
Definition at line 276 of file versionlie.c.
|
static |
Definition at line 21 of file versionlie.c.
Referenced by LoadShimDLL2(), run_test(), and START_TEST().