-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdmuk.h
56 lines (40 loc) · 1.17 KB
/
wdmuk.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*++
Module Name: wdmuk.h
Abstract: Header file which contains the structures, type definitions,
constants, global variables and function prototypes that are
shared between kernel and user mode.
Environment: Kernel & user mode
--*/
#pragma once
#define WDM_PORT_NAME L"\\MyPort" // Communication port name for UM access
#define WDM_BUFFER_SIZE 1024 // Max size of buffer
//
// Command codes used to handle messages
//
typedef enum _COMMAND_CODE
{
cmdNotification = 0, // km -> um
cmdExtension, // um -> km
cmdCustomBsod
} COMMAND_CODE, *PCOMMAND_CODE;
typedef struct _EXTENSION
{
COMMAND_CODE CoomandCode;
WCHAR Extension[WDM_BUFFER_SIZE];
}EXTENSION, *PEXTENSION;
//typedef struct _CUSTOM_BSOD {
//
// COMMAND_CODE CoomandCode;
// //BOOLEAN
//
//}CUSTOM_BSOD, *PCUSTOM_BSOD;
typedef struct _NOTIFICATION
{
COMMAND_CODE CommandCode;
WCHAR FilePath[WDM_BUFFER_SIZE];
}NOTIFICATION, *PNOTIFICATION;
typedef struct _NOTIFICATION_REPLY
{
COMMAND_CODE CommandCode;
BOOLEAN BlockCreate;
}NOTIFICATION_REPLY, *PNOTIFICATION_REPLY;