ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MinGW/include/ddk/ntddk.h
Revision: 1046
Committed: Mon Aug 29 13:19:38 2016 UTC (9 years, 2 months ago) by alloc
Content type: text/x-chdr
File size: 2612 byte(s)
Log Message:
Daodan: Added Windows MinGW and build batch file

File Contents

# Content
1 /*
2 * ddk/ntddk.h
3 *
4 * Windows Device Driver Kit -- common defines:
5 * DBG - Debugging enabled/disabled (0/1)
6 * POOL_TAGGING - Enable pool tagging
7 * _X86_ - X86 environment
8 * __USE_NTOSKRNL__ - Use ntoskrnl.exe instead of kernel32.dll
9 *
10 * $Id: ntddk.h,v 0e0292c3eba8 2015/11/14 21:06:19 keithmarshall $
11 *
12 * Written by Casper S. Hornstrup <chorns@users.sourceforge.net>
13 * Copyright (C) 2002, 2004, 2006, 2015, MinGW.org Project.
14 *
15 *
16 * Permission is hereby granted, free of charge, to any person obtaining a
17 * copy of this software and associated documentation files (the "Software"),
18 * to deal in the Software without restriction, including without limitation
19 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
20 * and/or sell copies of the Software, and to permit persons to whom the
21 * Software is furnished to do so, subject to the following conditions:
22 *
23 * The above copyright notice, this permission notice, and the following
24 * disclaimer shall be included in all copies or substantial portions of
25 * the Software.
26 *
27 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
28 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
30 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
32 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OR OTHER
33 * DEALINGS IN THE SOFTWARE.
34 *
35 */
36 #ifndef _DDK_NTDDK_H
37 #define _DDK_NTDDK_H
38 #pragma GCC system_header
39
40 #ifndef __USE_NTOSKRNL__
41 #define __USE_NTOSKRNL__ 1
42 #endif
43
44 #include <stdarg.h>
45 #include <windef.h>
46 #include <ntdef.h>
47 #include <basetyps.h>
48
49 _BEGIN_C_DECLS
50
51 /* Base types, structures and definitions.
52 */
53 typedef short CSHORT;
54 typedef CONST int CINT;
55 typedef CONST char *PCSZ;
56
57 #ifndef STATIC
58 #define STATIC static
59 #endif
60
61 #ifndef CALLBACK
62 #define CALLBACK
63 #endif
64
65 #ifndef DECL_IMPORT
66 #define DECL_IMPORT __declspec(dllimport)
67 #endif
68
69 #ifndef DECL_EXPORT
70 #define DECL_EXPORT __declspec(dllexport)
71 #endif
72
73 /* Windows NT status codes.
74 */
75 #include "ntstatus.h"
76
77 /* Windows NT definitions exported to user mode.
78 */
79 #include <winnt.h>
80
81 /* Windows Device Driver Kit.
82 */
83 #include "winddk.h"
84
85 /* Definitions only in Windows XP.
86 */
87 #include "winxp.h"
88
89 /* Definitions only in Windows 2000.
90 */
91 #include "win2k.h"
92
93 /* Definitions only in Windows NT 4.
94 */
95 #include "winnt4.h"
96
97 _END_C_DECLS
98
99 #endif /* _DDK_NTDDK_H: $RCSfile: ntddk.h,v $: end of file */