-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.h
More file actions
30 lines (24 loc) · 762 Bytes
/
Copy pathcommon.h
File metadata and controls
30 lines (24 loc) · 762 Bytes
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
#ifndef COMMON_H_
#define COMMON_H_
#define WIN32_NO_STATUS
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <string.h>
#define NTOS_MODE_USER
#include <ndk/iofuncs.h>
#include <ndk/rtlfuncs.h>
#include <ndk/mmfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/kefuncs.h>
#include <ndk/exfuncs.h>
#define NDEBUG
#include <debug.h>
extern IO_STATUS_BLOCK IoStatusBlock;
HANDLE DoOpenFile(LPCWSTR pszFileName, BOOL bWrite);
BOOL DoReadFile(HANDLE hFile, LPVOID pvData, ULONG cbData, ULONG *pcbRead);
BOOL DoWriteFile(HANDLE hFile, LPCVOID pvData, ULONG cbData);
BOOL DoPutSz(HANDLE hFile, LPCSTR psz);
BOOL DoPutDword(HANDLE hFile, ULONG dwNumber);
VOID DoCloseFile(HANDLE hFile);
#endif /* ndef COMMON_H_ */