-
Notifications
You must be signed in to change notification settings - Fork 158
/
Copy pathkrep.h
40 lines (29 loc) · 1004 Bytes
/
krep.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
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// KLoader project
//
// module: krep.h
// $Revision: 39 $
// $Date: 2012-05-02 15:38:09 +0400 (Ср, 02 май 2012) $
// description:
// Kernel-mode system file replacer.
typedef struct _FILE_DIRECTORY_ENTRY {
#if DBG
ULONG Magic;
#endif
LIST_ENTRY Entry;
FILE_DIRECTORY_INFORMATION FileInfo;
} FILE_DIRECTORY_ENTRY, *PFILE_DIRECTORY_ENTRY;
#define FILE_DIRECTORY_ENTRY_MAGIC 'nEDF'
#define ASSERT_FILE_DIRECTORY_ENTRY(x) ASSERT(x->Magic == FILE_DIRECTORY_ENTRY_MAGIC)
#if DBG
#define TAG_FILE_DIRECTORY_ENTRY FILE_DIRECTORY_ENTRY_MAGIC
#else
#define TAG_FILE_DIRECTORY_ENTRY 0
#endif
// Flags
#define FILES_SCAN_SUBDIRECTORIES 1
#define FILES_FIND_DIRECTORIES 2
// Constant string length
#define cstrlenA(x) (sizeof(x)-1)
#define cstrlenW(x) ((sizeof(x) / sizeof(WCHAR)) - 1)
ULONG CheckReplaceFiles(VOID);