1 /***********************************************************************\ 2 * windows.d * 3 * * 4 * Windows API header module * 5 * * 6 * Translated from MinGW API for MS-Windows 4.0 * 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 public import win32.cderr; 29 public import win32.dde; 30 public import win32.ddeml; 31 public import win32.dlgs; 32 public import win32.imm; 33 public import win32.lzexpand; 34 public import win32.mmsystem; 35 public import win32.nb30; 36 public import win32.winsvc; 37 38 public import win32.rpc; 39 public import win32.shellapi; 40 public import win32.winperf; 41 public import win32.commdlg; 42 public import win32.winspool; 43 public import win32.ole2; 44 45 // Select correct version of winsock. Importing the incorrect 46 // module will cause a static assert to prevent problems later on. 47 version (Win32_Winsock1) { 48 public import win32.winsock; 49 } else { 50 public import win32.winsock2; 51 public import win32.ws2tcpip; 52 } 53 54 /+ 55 #if (_WIN32_WINNT >= 0x400) 56 #include <winsock2.h> 57 /* 58 * MS likes to include mswsock.h here as well, 59 * but that can cause undefined symbols if 60 * winsock2.h is included before windows.h 61 */ 62 #else 63 #include <winsock.h> 64 #endif /* (_WIN32_WINNT >= 0x400) */ 65 +/