1 /***********************************************************************\
2 *                               windows.d                               *
3 *                                                                       *
4 *                       Windows API header module                       *
5 *                                                                       *
6 *             Translated from MinGW API for MS-Windows 3.10             *
7 *                                                                       *
8 *                       Placed into public domain                       *
9 \***********************************************************************/
10 module win32.windows;
11 
12 /*
13 	windows.h - main header file for the Win32 API
14 
15 	Written by Anders Norlander <anorland@hem2.passagen.se>
16 
17 	This file is part of a free library for the Win32 API.
18 
19 	This library is distributed in the hope that it will be useful,
20 	but WITHOUT ANY WARRANTY; without even the implied warranty of
21 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 
23 */
24 
25 public import win32.w32api;
26 public import win32.core;
27 
28 // We can't use static if for imports, build gets confused.
29 version (WindowsVista) {
30 	public import win32.winsvc;
31 } else version (Windows2003) {
32 	public import win32.winsvc;
33 } else version (WindowsXP) {
34 	public import win32.winsvc;
35 } else version (WindowsNTonly) {
36 	public import win32.winsvc;
37 }
38 
39 public import win32.cderr;
40 public import win32.dde;
41 public import win32.ddeml;
42 public import win32.dlgs;
43 public import win32.imm;
44 public import win32.lzexpand;
45 public import win32.mmsystem;
46 public import win32.nb30;
47 
48 
49 
50 public import win32.rpc;
51 public import win32.shellapi;
52 public import win32.winperf;
53 public import win32.commdlg;
54 public import win32.winspool;
55 public import win32.ole2;
56 
57 // Select correct version of winsock.  Importing the incorrect
58 // module will cause a static assert to prevent problems later on.
59 version (Win32_Winsock1) {
60 	public import win32.winsock;
61 } else {
62 	public import win32.winsock2;
63 	public import win32.ws2tcpip;
64 }
65 
66 /+
67 #if (_WIN32_WINNT >= 0x0400)
68 #include <winsock2.h>
69 /*
70  * MS likes to include mswsock.h here as well,
71  * but that can cause undefined symbols if
72  * winsock2.h is included before windows.h
73  */
74 #else
75 #include <winsock.h>
76 #endif /*  (_WIN32_WINNT >= 0x0400) */
77 +/