|
|
1.1 root 1: /*++
2:
3: Copyright (c) 1991, 1992 Microsoft Corporation
4:
5: Module Name:
6:
7: krnldrvr.h
8:
9: Abstract:
10:
11: Definitions for the krnldrvr sample device driver
12:
13: --*/
14:
15: #if DBG
16: #define KDVRDIAG1 ((ULONG)0x00000001)
17: #define KDVRDIAG2 ((ULONG)0x00000002)
18: #define KDVRDIAG3 ((ULONG)0x00000004)
19: #define KDVRDIAG4 ((ULONG)0x00000008)
20: #define KDVRDIAG5 ((ULONG)0x00000010)
21: #define KDVRFLOW ((ULONG)0x20000000)
22: #define KDVRERRORS ((ULONG)0x40000000)
23: #define KDVRBUGCHECK ((ULONG)0x80000000)
24:
25:
26: // Change the initial value of this variable to produce debugging
27: // messages.
28:
29: ULONG KrnldrvrDebugLevel = 0;
30:
31:
32: #define KrnldrvrDump(LEVEL,STRING) \
33: do { \
34: if (KrnldrvrDebugLevel & LEVEL) { \
35: DbgPrint STRING; \
36: } \
37: if (LEVEL == KDVRBUGCHECK) { \
38: ASSERT(FALSE); \
39: } \
40: } while (0)
41: #else
42: #define KrnldrvrDump(LEVEL,STRING) do {NOTHING;} while (0)
43: #endif
44:
45:
46: // PLEASE NOTE:
47: // The following driver device number and IOCTL code has been chosen
48: // at random, and is not intended to be used as is in any real product.
49: // Refer to the NT DDK Kernel mode Driver Design Guide for more information
50: // about IOCTL code formats. Contact Microsoft Product Support if you have
51: // questions about assigning your own IOCTL codes.
52:
53: #define FILE_DEVICE_KRNLDRVR 0x80ff
54:
55: #define IOCTL_KRNLDRVR_GET_INFORMATION CTL_CODE(FILE_DEVICE_KRNLDRVR, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)
56:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.