-
Notifications
You must be signed in to change notification settings - Fork 5
/
kcpplib.h
41 lines (35 loc) · 892 Bytes
/
kcpplib.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
#pragma once
//
// 外部导入
//
#include <fltKernel.h>
//-------------------------------------------------------
// extern
//-------------------------------------------------------
EXTERN_C
PDRIVER_OBJECT g_pDriverObject;
EXTERN_C
wchar_t g_DriverRegistryKey[/*MAX_PATH*/ 260];
EXTERN_C
wchar_t g_DrvServiceKeyName[/*MAX_PATH*/ 260];
EXTERN_C
PVOID g_pDrvImageBase;
EXTERN_C
SIZE_T g_DrvImageSize;
//外部需要实现这个函数,此函数可以认为是调用者的DriverEntry
EXTERN_C
DRIVER_INITIALIZE KcpplibDriverEntry;
//外部需要实现这个函数,此函数可以认为是调用者的DriverUnLoad
EXTERN_C
DRIVER_UNLOAD KcpplibDriverUnLoad;
//-------------------------------------------------------
// cppsupport
//-------------------------------------------------------
#ifdef __cplusplus
// kstl
# include <kcpplib/kstl/kstl.h>
// kcrt
# include <kcpplib/kcrt/kcrt.h>
#else
# error 必须用CPP来引用我
#endif