ReactOS  r74622
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 
11 typedef LONG NTSTATUS;
12 
13 //
14 // umode methods
15 //
16 BOOL RegisterDriver(LPCWSTR lpDriverName, LPCWSTR lpPathName);
17 BOOL StartDriver(LPCWSTR lpDriverName);
18 BOOL StopDriver(LPCWSTR lpDriverName);
19 BOOL UnregisterDriver(LPCWSTR lpDriverName);
20 
21 //
22 // undoc methods
23 //
24 BOOL ConvertPath(LPCWSTR lpPath, LPWSTR lpDevice);
27 BOOL NtStartDriver(LPCWSTR lpService);
28 BOOL NtStopDriver(LPCWSTR lpService);
29 
30 
31 //
32 // undocumented stuff
33 //
34 #define SystemLoadGdiDriverInformation 26
35 #define SystemExtendServiceTableInformation 38
37 NtSetSystemInformation(IN INT SystemInformationClass,
38  IN PVOID SystemInformation,
39  IN ULONG SystemInformationLength );
41 NtUnloadDriver(IN PUNICODE_STRING DriverServiceName);
42 
44 {
52 
60 
66 
67 
68 typedef struct _OBJECT_NAME_INFORMATION {
71 
72 
DWORD *typedef PVOID
Definition: winlogon.h:52
struct _OBJECT_NAME_INFORMATION * POBJECT_NAME_INFORMATION
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
Definition: dumpinfo.c:39
#define IN
Definition: typedefs.h:39
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
IN CINT OUT PVOID ObjectInformation
Definition: conport.c:47
enum _OBJECT_INFORMATION_CLASS OBJECT_INFO_CLASS
BOOL StartDriver(LPCWSTR lpDriverName)
Definition: umode.c:56
UNICODE_STRING Name
Definition: nt_native.h:1270
#define NTSYSAPI
Definition: ntoskrnl.h:14
int32_t INT
Definition: typedefs.h:57
_In_ OBJECT_INFORMATION_CLASS _In_ ULONG ObjectInformationLength
Definition: obfuncs.h:294
BOOL NtStartDriver(LPCWSTR lpService)
Definition: undoc.c:133
BOOL NtStopDriver(LPCWSTR lpService)
Definition: undoc.c:164
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
long LONG
Definition: pedump.c:60
IN CINT ObjectInformationClass
Definition: conport.c:47
NTSYSAPI NTSTATUS NTAPI NtSetSystemInformation(IN INT SystemInformationClass, IN PVOID SystemInformation, IN ULONG SystemInformationLength)
_In_ HANDLE Handle
Definition: extypes.h:390
unsigned int BOOL
Definition: ntddk_ex.h:94
NTSTATUS NtQueryObject(IN HANDLE Handle, IN OBJECT_INFO_CLASS ObjectInformationClass, OUT PVOID ObjectInformation, IN ULONG ObjectInformationLength, OUT PULONG ReturnLength)
BOOL StopDriver(LPCWSTR lpDriverName)
Definition: umode.c:94
BOOL LoadVia_SystemLoadGdiDriverInformation(LPWSTR lpDriverPath)
Definition: undoc.c:199
DWORD *typedef HANDLE
Definition: winlogon.h:52
LONG NTSTATUS
Definition: DriverTester.h:11
struct _SYSTEM_GDI_DRIVER_INFORMATION * PSYSTEM_GDI_DRIVER_INFORMATION
NTSTATUS NtUnloadDriver(IN PUNICODE_STRING DriverServiceName)
Definition: driver.c:2176
unsigned int * PULONG
Definition: retypes.h:1
BOOL UnregisterDriver(LPCWSTR lpDriverName)
Definition: umode.c:135
BOOL LoadVia_SystemExtendServiceTableInformation(LPWSTR lpDriverPath)
Definition: undoc.c:240
BOOL ConvertPath(LPCWSTR lpPath, LPWSTR lpDevice)
Definition: undoc.c:56
struct _SYSTEM_GDI_DRIVER_INFORMATION SYSTEM_GDI_DRIVER_INFORMATION
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
BOOL RegisterDriver(LPCWSTR lpDriverName, LPCWSTR lpPathName)
Definition: umode.c:5
_OBJECT_INFORMATION_CLASS
Definition: DriverTester.h:53
struct _OBJECT_NAME_INFORMATION OBJECT_NAME_INFORMATION
WCHAR * LPWSTR
Definition: xmlstorage.h:184
PIMAGE_EXPORT_DIRECTORY ExportSectionPointer
Definition: DriverTester.h:49