52 ErrMode &= ~SEM_FAILCRITICALERRORS;
68 "Unexpected error mode: 0x%x\n", dwErrorMode);
76 "Unexpected error mode: 0x%x\n", dwErrorMode);
84 "Unexpected error mode: 0x%x\n", dwErrorMode);
92 "Unexpected error mode: 0x%x\n", dwErrorMode);
100 DWORD dwErrorMode, dwOldErrorMode;
130 ok(dwErrorMode == dwOldErrorMode,
"ErrorMode changed, was 0x%x, is 0x%x\n", dwOldErrorMode, dwErrorMode);
136 DWORD dwErrorMode, dwOldErrorMode;
166 ok(dwErrorMode == dwOldErrorMode,
"ErrorMode changed, was 0x%x, is 0x%x\n", dwOldErrorMode, dwErrorMode);
172 DWORD dwErrorMode, dwOldErrorMode;
202 ok(dwErrorMode == dwOldErrorMode,
"ErrorMode changed, was 0x%x, is 0x%x\n", dwOldErrorMode, dwErrorMode);
208 DWORD dwErrorMode, dwOldErrorMode;
238 ok(dwErrorMode == dwOldErrorMode,
"ErrorMode changed, was 0x%x, is 0x%x\n", dwOldErrorMode, dwErrorMode);
246 DWORD num_shims = 0,
n, dwErrorMode;
258 skip(
"GetHookAPIs not found\n");
262 hook =
pGetHookAPIs(
"test123.dll:123;test111:111;Something.mark:0;empty",
L"IgnoreLoadLibrary", &num_shims);
264 ok(
hook !=
NULL,
"Expected hook to be a valid pointer\n");
265 ok(num_shims == 4,
"Expected num_shims to be 0, was: %u\n", num_shims);
267 if (!
hook || num_shims != 4)
271 trace(
"Error mode: 0x%x\n", dwErrorMode);
273 for (
n = 0;
n < num_shims; ++
n)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
PHOOKAPI(WINAPI * tGETHOOKAPIS)(LPCSTR szCommandLine, LPCWSTR wszShimName, PDWORD pdwHookCount)
tGETHOOKAPIS LoadShimDLL2(PCWSTR ShimDll)
#define ok_int(expression, result)
#define ok_ptr(expression, result)
#define NT_SUCCESS(StatCode)
#define INVALID_HANDLE_VALUE
HMODULE(WINAPI * LOADLIBRARYEXAPROC)(LPCSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
DWORD get_host_winver(void)
HMODULE(WINAPI * LOADLIBRARYWPROC)(LPCWSTR lpLibFileName)
static HMODULE WINAPI my_LoadLibraryA(PCSTR Name)
static HMODULE g_hSentinelModule
static void test_LoadLibraryA(PHOOKAPI hook)
static void test_LoadLibraryExW(PHOOKAPI hook)
static void test_LoadLibraryW(PHOOKAPI hook)
static HMODULE WINAPI my_LoadLibraryExW(PCWSTR Name, HANDLE hFile, DWORD dwFlags)
HMODULE(WINAPI * LOADLIBRARYAPROC)(LPCSTR lpLibFileName)
static DWORD g_WinVersion
HMODULE(WINAPI * LOADLIBRARYEXWPROC)(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
static HMODULE WINAPI my_LoadLibraryW(PCWSTR Name)
static void test_LoadLibraryExA(PHOOKAPI hook)
static tGETHOOKAPIS pGetHookAPIs
UINT WINAPI GetErrorMode(VOID)
static HMODULE WINAPI my_LoadLibraryExA(PCSTR Name, HANDLE hFile, DWORD dwFlags)
@ ProcessDefaultHardErrorMode
#define SEM_FAILCRITICALERRORS
#define SEM_NOGPFAULTERRORBOX
#define SEM_NOOPENFILEERRORBOX
#define NtCurrentProcess()
NTSTATUS NTAPI NtQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
#define _WIN32_WINNT_WIN8
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags