Go to the source code of this file.
◆ TESTDLL
#define TESTDLL "GetUName.dLl" |
◆ C_ASSERT() [1/2]
◆ C_ASSERT() [2/2]
◆ RtlGetUnloadEventTrace()
Definition at line 20 of file trace.c.
21{
22
24}
static RTL_UNLOAD_EVENT_TRACE RtlpUnloadEventTrace[RTL_UNLOAD_EVENT_TRACE_NUMBER]
Referenced by Test_Dump().
◆ START_TEST()
Definition at line 68 of file RtlGetUnloadEventTrace.c.
69{
72
74
76 {
79 }
81
83}
static void Test_LoadUnload()
#define RTL_UNLOAD_EVENT_TRACE_NUMBER
◆ Test_Dump()
static void Test_Dump |
( |
| ) |
|
|
static |
Definition at line 19 of file RtlGetUnloadEventTrace.c.
20{
23
26 {
28
30
31 ok(
Trace->BaseAddress !=
NULL,
"Got no BaseAddress for %u\n",
n);
32 ok(
Trace->SizeOfImage != 0,
"Got no SizeOfImage for %u\n",
n);
33 ok(
Trace->Sequence == ExpectSequence,
34 "Wrong Sequence: %lu instead of %lu for %u\n",
Trace->Sequence, ExpectSequence,
n);
35 ok(
Trace->TimeDateStamp != 0,
"Got no TimeDateStamp for %u\n",
n);
36 ok(
Trace->CheckSum != 0,
"Got no CheckSum for %u\n",
n);
37 ok(!
wcscmp(
Trace->ImageName,
L"GetUName.dLl"),
"Wrong ImageName for %u: %S\n",
n,
Trace->ImageName);
38 }
39}
PRTL_UNLOAD_EVENT_TRACE NTAPI RtlGetUnloadEventTrace(VOID)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
Referenced by START_TEST().
◆ Test_LoadUnload()
static void Test_LoadUnload |
( |
| ) |
|
|
static |
Definition at line 42 of file RtlGetUnloadEventTrace.c.
43{
46
49
52
54 {
56 }
57 else
58 {
60 }
61
63
66}
std::map< E_MODULE, HMODULE > mod
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
DWORD WINAPI GetModuleFileNameA(HINSTANCE hModule, LPSTR lpFilename, DWORD nSize)
Referenced by START_TEST().