Go to the source code of this file.
◆ START_TEST()
Definition at line 10 of file NtUnloadDriver.c.
11{
13 BOOLEAN OldPrivilege, OldPrivilege2;
16
19 {
20 skip(
"Failed to drop driver load privilege\n");
21 return;
22 }
23
26
29 {
30 skip(
"Failed to acquire driver load privilege\n");
32 }
33
36
40
43 {
44 skip(
"Failed to allocate memory\n");
46 }
47
49
55
61
67
73
79
85
92
99
102 {
104 }
105
108}
NTSTATUS NtUnloadDriver(IN PUNICODE_STRING DriverServiceName)
#define STATUS_PRIVILEGE_NOT_HELD
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
#define ok_hex(expression, result)
static WCHAR ServiceName[]
#define NT_SUCCESS(StatCode)
#define RtlFillMemoryUlong(dst, len, val)
#define SE_LOAD_DRIVER_PRIVILEGE
NTSYSAPI NTSTATUS NTAPI RtlAdjustPrivilege(_In_ ULONG Privilege, _In_ BOOLEAN NewValue, _In_ BOOLEAN ForThread, _Out_ PBOOLEAN OldValue)
#define STATUS_OBJECT_PATH_SYNTAX_BAD
#define STATUS_ACCESS_VIOLATION
#define STATUS_INVALID_PARAMETER
#define STATUS_OBJECT_NAME_INVALID