1 /* Copyright (C) 2000 Free Software Foundation, Inc.
2 Copyright (C) 2000 Ben Wing.
4 This file is part of XEmacs.
6 XEmacs is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* Synched up with: Not in FSF. */
25 Created May 2000 by Andy Piper.
26 Windows-Mule stuff added by Ben Wing.
29 #ifndef INCLUDED_syswindows_h_
30 #define INCLUDED_syswindows_h_
34 #if (defined (__CYGWIN32__) || defined(__MINGW32__)) && \
35 CYGWIN_VERSION_DLL_MAJOR < 21
36 extern BOOL WINAPI DdeFreeStringHandle(DWORD,HSZ);
37 extern BOOL WINAPI PlaySound(LPCSTR,HMODULE,DWORD);
38 #define stricmp strcasecmp
39 #define FONTENUMPROC FONTENUMEXPROC
41 #elif defined (WIN32_LEAN_AND_MEAN)
48 /* mmsystem.h defines. */
53 #define SND_NODEFAULT 2
59 #define SND_FILENAME 0x2000L
62 /* winspool.h defines. */
64 #define PHYSICALWIDTH 110
66 #ifndef PHYSICALHEIGHT
67 #define PHYSICALHEIGHT 111
69 #ifndef PHYSICALOFFSETX
70 #define PHYSICALOFFSETX 112
72 #ifndef PHYSICALOFFSETY
73 #define PHYSICALOFFSETY 113
76 /* windows.h defines. */
77 #if defined (__CYGWIN32__) && (CYGWIN_VERSION_DLL_MAJOR < 20)
78 typedef NMHDR *LPNMHDR;
81 #ifndef SPI_GETWHEELSCROLLLINES
82 #define SPI_GETWHEELSCROLLLINES 104
84 #ifndef WHEEL_PAGESCROLL
85 #define WHEEL_PAGESCROLL (UINT_MAX)
88 #define WHEEL_DELTA 120
91 #define WM_MOUSEWHEEL 0x20A
97 #define SIF_TRACKPOS 0x0010
100 #define FW_BLACK FW_HEAVY
103 #define FW_ULTRABOLD FW_EXTRABOLD
106 #define FW_DEMIBOLD FW_SEMIBOLD
108 #ifndef FW_ULTRALIGHT
109 #define FW_ULTRALIGHT FW_EXTRALIGHT
111 #ifndef APPCMD_FILTERINITS
112 #define APPCMD_FILTERINITS 0x20L
114 #ifndef CBF_FAIL_SELFCONNECTIONS
115 #define CBF_FAIL_SELFCONNECTIONS 0x1000
117 #ifndef CBF_SKIP_ALLNOTIFICATIONS
118 #define CBF_SKIP_ALLNOTIFICATIONS 0x3C0000
120 #ifndef CBF_FAIL_ADVISES
121 #define CBF_FAIL_ADVISES 0x4000
123 #ifndef CBF_FAIL_POKES
124 #define CBF_FAIL_POKES 0x10000
126 #ifndef CBF_FAIL_REQUESTS
127 #define CBF_FAIL_REQUESTS 0x20000
129 #ifndef SZDDESYS_TOPIC
130 #define SZDDESYS_TOPIC "System"
132 #ifndef JOHAB_CHARSET
133 #define JOHAB_CHARSET 130
136 #define MAC_CHARSET 77
139 /***************************************************************/
141 /* Definitions for Mule under MS Windows */
143 /* extern int mswindows_windows9x_p; */
144 /* #define EIUNICODE_P (!mswindows_windows9x_p) */
145 #define EIUNICODE_P 0
147 #define EITCHAR_SIZE (EIUNICODE_P ? sizeof (WCHAR) : sizeof (CHAR))
148 #define EITEXT(arg) (EIUNICODE_P ? L##arg : (arg))
149 #define EICOPY_TCHAR(ptr, ch) \
150 (EIUNICODE_P ? (* (LPWSTR) (ptr) = L##ch) : (* (LPSTR) (ptr) = (ch)))
152 #endif /* INCLUDED_syswindows_h_ */