root/trunk/win32/core.d

Revision 180, 1.4 kB (checked in by smjg, 1 year ago)

Added rassapi, rpcdce2, reason; updated versioning to include Windows Vista; a few cleanups

Line 
1 /***********************************************************************\
2 *                                core.d                                 *
3 *                                                                       *
4 *                    Helper module for the Windows API                  *
5 *                                                                       *
6 *                       Placed into public domain                       *
7 \***********************************************************************/
8 module win32.core;
9
10 /**
11  The core Windows API functions.
12
13  Importing this file is equivalent to the C code:
14  ---
15  #define WIN32_LEAN_AND_MEAN
16  #include "windows.h"
17  ---
18
19 */
20
21 public import win32.windef;
22 public import win32.winnt;
23 public import win32.wincon;
24 public import win32.winbase;
25 public import win32.wingdi;
26 public import win32.winuser;
27 public import win32.winnls;
28 public import win32.winver;
29 public import win32.winnetwk;
30
31 // We can't use static if for imports, build gets confused.
32 // static if (_WIN32_WINNT_ONLY) import win32.winsvc;
33 version (WindowsVista) {
34     version = WIN32_WINNT_ONLY;
35 } else version (Windows2003) {
36     version = WIN32_WINNT_ONLY;
37 } else version (WindowsXP) {
38     version = WIN32_WINNT_ONLY;
39 } else version (WindowsNTonly) {
40     version = WIN32_WINNT_ONLY;
41 }
42
43 version (WIN32_WINNT_ONLY) {
44     public import win32.winsvc;
45 }
Note: See TracBrowser for help on using the browser.