ReactOS 0.4.15-dev-8127-g6338913
DriverTester.h
Go to the documentation of this file.
1#define _WIN32_WINNT 0x0500
2#include <windows.h>
3#include <stdio.h>
4#include <winternl.h>
5
6#define DRIVER_NAME L"TestDriver"
7
8#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
9#define STATUS_PRIVILEGE_NOT_HELD ((NTSTATUS)0xC0000061L)
10
11typedef LONG NTSTATUS;
12
13//
14// umode methods
15//
16BOOL RegisterDriver(LPCWSTR lpDriverName, LPCWSTR lpPathName);
17BOOL StartDriver(LPCWSTR lpDriverName);
18BOOL StopDriver(LPCWSTR lpDriverName);
19BOOL UnregisterDriver(LPCWSTR lpDriverName);
20
21//
22// undoc methods
23//
24BOOL ConvertPath(LPCWSTR lpPath, LPWSTR lpDevice);
27BOOL NtStartDriver(LPCWSTR lpService);
28BOOL NtStopDriver(LPCWSTR lpService);
29
30
31//
32// undocumented stuff
33//
34#define SystemLoadGdiDriverInformation 26
35#define SystemExtendServiceTableInformation 38
37NtSetSystemInformation(IN INT SystemInformationClass,
38 IN PVOID SystemInformation,
39 IN ULONG SystemInformationLength );
41NtUnloadDriver(IN PUNICODE_STRING DriverServiceName);
42
44{
52
60
66
67
68typedef struct _OBJECT_NAME_INFORMATION {
71
72
BOOL RegisterDriver(LPCWSTR lpDriverName, LPCWSTR lpPathName)
Definition: umode.c:5
NTSYSAPI NTSTATUS NTAPI NtSetSystemInformation(IN INT SystemInformationClass, IN PVOID SystemInformation, IN ULONG SystemInformationLength)
struct _SYSTEM_GDI_DRIVER_INFORMATION SYSTEM_GDI_DRIVER_INFORMATION
BOOL NtStopDriver(LPCWSTR lpService)
Definition: undoc.c:164
NTSTATUS NtUnloadDriver(IN PUNICODE_STRING DriverServiceName)
Definition: driver.c:2208
BOOL StartDriver(LPCWSTR lpDriverName)
Definition: umode.c:56
BOOL ConvertPath(LPCWSTR lpPath, LPWSTR lpDevice)
Definition: undoc.c:56
BOOL LoadVia_SystemExtendServiceTableInformation(LPWSTR lpDriverPath)
Definition: undoc.c:240
LONG NTSTATUS
Definition: DriverTester.h:11
_OBJECT_INFORMATION_CLASS
Definition: DriverTester.h:53
@ ObjectTypeInformation
Definition: DriverTester.h:56
@ ObjectAllTypesInformation
Definition: DriverTester.h:57
@ ObjectHandleInformation
Definition: DriverTester.h:58
@ ObjectBasicInformation
Definition: DriverTester.h:54
@ ObjectNameInformation
Definition: DriverTester.h:55
struct _OBJECT_NAME_INFORMATION OBJECT_NAME_INFORMATION
struct _OBJECT_NAME_INFORMATION * POBJECT_NAME_INFORMATION
BOOL StopDriver(LPCWSTR lpDriverName)
Definition: umode.c:94
BOOL NtStartDriver(LPCWSTR lpService)
Definition: undoc.c:133
enum _OBJECT_INFORMATION_CLASS OBJECT_INFO_CLASS
BOOL LoadVia_SystemLoadGdiDriverInformation(LPWSTR lpDriverPath)
Definition: undoc.c:199
BOOL UnregisterDriver(LPCWSTR lpDriverName)
Definition: umode.c:135
NTSTATUS NtQueryObject(IN HANDLE Handle, IN OBJECT_INFO_CLASS ObjectInformationClass, OUT PVOID ObjectInformation, IN ULONG ObjectInformationLength, OUT PULONG ReturnLength)
struct _SYSTEM_GDI_DRIVER_INFORMATION * PSYSTEM_GDI_DRIVER_INFORMATION
LONG NTSTATUS
Definition: precomp.h:26
#define NTSYSAPI
Definition: ntoskrnl.h:12
IN CINT ObjectInformationClass
Definition: conport.c:47
IN CINT OUT PVOID ObjectInformation
Definition: conport.c:48
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
Definition: dumpinfo.c:43
unsigned int BOOL
Definition: ntddk_ex.h:94
ULONG Handle
Definition: gdb_input.c:15
_In_ OBJECT_INFORMATION_CLASS _In_ ULONG ObjectInformationLength
Definition: obfuncs.h:294
long LONG
Definition: pedump.c:60
UNICODE_STRING Name
Definition: nt_native.h:1270
PIMAGE_EXPORT_DIRECTORY ExportSectionPointer
Definition: DriverTester.h:49
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185