PageRenderTime 37ms CodeModel.GetById 16ms app.highlight 18ms RepoModel.GetById 1ms app.codeStats 0ms

/binding/win32/windows.d

http://github.com/wilkie/djehuty
D | 186 lines | 100 code | 19 blank | 67 comment | 14 complexity | 04d84ce46e2dcf4ced181ae292608720 MD5 | raw file
  1/*
  2 * windows.d
  3 *
  4 * This module binds the Windows API and mimics windows.h.
  5 * The original header and copyright information for the file this module
  6 * was based upon are given below.
  7 *
  8 * Author: Dave Wilkinson
  9 * Originated: July 7th, 2009
 10 *
 11 */
 12
 13/*++ BUILD Version: 0001    Increment this if a change has global effects
 14
 15Copyright (c) Microsoft Corporation. All rights reserved.
 16
 17Module Name:
 18
 19    windows.h
 20
 21Abstract:
 22
 23    Master include file for Windows applications.
 24
 25--*/
 26
 27/*  If defined, the following flags inhibit definition
 28 *     of the indicated items.
 29 *
 30 *  NOGDICAPMASKS     - CC_*, LC_*, PC_*, CP_*, TC_*, RC_
 31 *  NOVIRTUALKEYCODES - VK_*
 32 *  NOWINMESSAGES     - WM_*, EM_*, LB_*, CB_*
 33 *  NOWINSTYLES       - WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
 34 *  NOSYSMETRICS      - SM_*
 35 *  NOMENUS           - MF_*
 36 *  NOICONS           - IDI_*
 37 *  NOKEYSTATES       - MK_*
 38 *  NOSYSCOMMANDS     - SC_*
 39 *  NORASTEROPS       - Binary and Tertiary raster ops
 40 *  NOSHOWWINDOW      - SW_*
 41 *  OEMRESOURCE       - OEM Resource values
 42 *  NOATOM            - Atom Manager routines
 43 *  NOCLIPBOARD       - Clipboard routines
 44 *  NOCOLOR           - Screen colors
 45 *  NOCTLMGR          - Control and Dialog routines
 46 *  NODRAWTEXT        - DrawText() and DT_*
 47 *  NOGDI             - All GDI defines and routines
 48 *  NOKERNEL          - All KERNEL defines and routines
 49 *  NOUSER            - All USER defines and routines
 50 *  NONLS             - All NLS defines and routines
 51 *  NOMB              - MB_* and MessageBox()
 52 *  NOMEMMGR          - GMEM_*, LMEM_*, GHND, LHND, associated routines
 53 *  NOMETAFILE        - typedef METAFILEPICT
 54 *  NOMINMAX          - Macros min(a,b) and max(a,b)
 55 *  NOMSG             - typedef MSG and associated routines
 56 *  NOOPENFILE        - OpenFile(), OemToAnsi, AnsiToOem, and OF_*
 57 *  NOSCROLL          - SB_* and scrolling routines
 58 *  NOSERVICE         - All Service Controller routines, SERVICE_ equates, etc.
 59 *  NOSOUND           - Sound driver routines
 60 *  NOTEXTMETRIC      - typedef TEXTMETRIC and associated routines
 61 *  NOWH              - SetWindowsHook and WH_*
 62 *  NOWINOFFSETS      - GWL_*, GCL_*, associated routines
 63 *  NOCOMM            - COMM driver routines
 64 *  NOKANJI           - Kanji support stuff.
 65 *  NOHELP            - Help engine interface.
 66 *  NOPROFILER        - Profiler interface.
 67 *  NODEFERWINDOWPOS  - DeferWindowPos routines
 68 *  NOMCX             - Modem Configuration Extensions
 69 */
 70
 71public import binding.win32.windef;
 72public import binding.win32.winbase;
 73public import binding.win32.wingdi;
 74public import binding.win32.winuser;
 75public import binding.win32.stralign;
 76
 77version(RC_INVOKED) {
 78	version(NOWINRES) {
 79	}
 80	else {
 81		public import binding.win32.winresrc;
 82	}
 83}
 84
 85version(_WIN32NLS) {
 86	public import binding.win32.winnls;
 87}
 88
 89version(_WIN32REG) {
 90	public import binding.win32.winreg;
 91}
 92
 93version(INC_OLE2) {
 94	public import binding.win32.ole2;
 95}
 96
 97version(_MAC) {
 98	public import binding.win32.winwlm;
 99}
100else {
101
102	version(NOSERVICE) {
103	}
104	else {
105		public import binding.win32.winsvc;
106	}
107
108	version(NOMCX) {
109	}
110	else {
111		public import binding.win32.mcx;
112	}
113
114	version(NOIME) {
115	}
116	else {
117		public import binding.win32.imm;
118	}
119
120	version(_WIN32NLS) {
121	}
122	else {
123		public import binding.win32.winnls;
124	}
125
126	version(_WIN32REG) {
127	}
128	else {
129		public import binding.win32.winreg;
130	}
131
132	public import binding.win32.wincon;
133	public import binding.win32.winver;
134	public import binding.win32.winnetwk;
135}
136
137version(WIN32_LEAN_AND_MEAN) {
138}
139else {
140	public import binding.win32.cderr;
141	public import binding.win32.dde;
142	public import binding.win32.ddeml;
143	public import binding.win32.dlgs;
144	public import binding.win32.shellapi;
145
146	version(_MAC) {
147	}
148	else {
149		public import binding.win32.lzexpand;
150		public import binding.win32.mmsystem;
151		public import binding.win32.nb30;
152		public import binding.win32.rpc;
153		public import binding.win32.winperf;
154		public import binding.win32.winsock;
155	}
156
157	version(NO_CRYPT) {
158	}
159	else {
160		public import binding.win32.wincrypt;
161		public import binding.win32.winefs;
162		public import binding.win32.winscard;
163	}
164
165	version(NO_GDI) {
166	}
167	else {
168		version(_MAC) {
169		}
170		else {
171			public import binding.win32.winspool;
172			version(INC_OLE1) {
173				public import binding.win32.ole;
174			}
175			else {
176				version(INC_OLE2) {
177				}
178				else {
179					public import binding.win32.ole2;
180				}
181			}
182		}
183
184		public import binding.win32.commdlg;
185	}
186}