13 BOOLEAN OldPrivilege, OldPrivilege2;
20 skip(
"Failed to drop driver load privilege\n");
30 skip(
"Failed to acquire driver load privilege\n");
44 skip(
"Failed to allocate memory\n");
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