forked from jamersonpro/ntfsmarkbad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.h
82 lines (50 loc) · 1.34 KB
/
common.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#pragma once
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_NON_CONFORMING_SWPRINTFS
#define _WIN32_WINNT 0x0601
#define DECLSPEC_DEPRECATED_DDK
#include <sdkddkver.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include <memory.h>
#include <ntstatus.h>
#define WIN32_NO_STATUS
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#define NTKERNELAPI __declspec(dllimport)
typedef ULONG CLONG;
#include <setupapi.h>
#include <winioctl.h>
#include <ntddmmc.h>
#include <ntddcdrm.h>
#include <cfgmgr32.h>
#include "my_ntddk.h"
#define ASSERT(x) assert(x)
#define ASSERTMSG(message,x) assert((message)&&(x))
#define NOTHING do{}while(false)
#define ARGUMENT_PRESENT(ArgumentPointer) (\
(CHAR *)((ULONG_PTR)(ArgumentPointer)) != (CHAR *)(NULL) )
#include <ntstatus.h>
#define WIN32_NO_STATUS
//#include <windows.h>
//#include <nt.h>
//#include <ntrtl.h>
//#include <nturtl.h>
#include <devioctl.h>
#include <ntdddisk.h>
#include <bcrypt.h>
#include <ntddscsi.h>
#ifndef _NTSRB_
#define _NTSRB_
#endif
#include <scsi.h>
#include <initguid.h>
#include <diskguid.h>
//-------------------------
#define _NTDEF_
#include <WINERROR.H>
#define ARGUMENT_PRESENT(ArgumentPointer) (\
(CHAR *)((ULONG_PTR)(ArgumentPointer)) != (CHAR *)(NULL) )