]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/missing.h
Reuse wxMessageOutputStderr for wxLogStderr implementation.
[wxWidgets.git] / include / wx / msw / missing.h
CommitLineData
7391216e 1/////////////////////////////////////////////////////////////////////////////
05e3a383 2// Name: wx/msw/missing.h
7391216e 3// Purpose: Declarations for parts of the Win32 SDK that are missing in
05e3a383 4// the versions that come with some compilers
7391216e
VS
5// Created: 2002/04/23
6// RCS-ID: $Id$
05e3a383 7// Copyright: (c) 2002 Mattia Barbon
65571936 8// Licence: wxWindows licence
7391216e
VS
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MISSING_H_
12#define _WX_MISSING_H_
13
90a752c2
JS
14/*
15 * The following are required for VC++ 6.
16 */
7391216e 17
8003f8de
DS
18// Needed by cursor.cpp
19#ifndef IDC_HAND
20 #define IDC_HAND MAKEINTRESOURCE(32649)
21#endif
22
90a752c2
JS
23// Needed by strconv.cpp
24#ifndef WC_NO_BEST_FIT_CHARS
25 #define WC_NO_BEST_FIT_CHARS 0x400
7391216e
VS
26#endif
27
90a752c2
JS
28#ifndef WM_CONTEXTMENU
29 #define WM_CONTEXTMENU 0x007B
3bce6687
JS
30#endif
31
2f0312f0
VZ
32#ifndef WM_CHANGEUISTATE
33 #define WM_CHANGEUISTATE 0x0127
34#endif
35
90a752c2
JS
36#ifndef WM_UPDATEUISTATE
37 #define WM_UPDATEUISTATE 0x0128
3bce6687
JS
38#endif
39
2f0312f0
VZ
40#ifndef WM_QUERYUISTATE
41 #define WM_QUERYUISTATE 0x0129
1ca78aa1
JS
42#endif
43
90a752c2
JS
44#ifndef WM_PRINTCLIENT
45 #define WM_PRINTCLIENT 0x318
3bce6687
JS
46#endif
47
2f0312f0
VZ
48#ifndef DT_HIDEPREFIX
49 #define DT_HIDEPREFIX 0x00100000
50#endif
51
90a752c2 52// Needed by toplevel.cpp
3ef092d6
VZ
53#ifndef UIS_SET
54 #define UIS_SET 1
55 #define UIS_CLEAR 2
90a752c2 56 #define UIS_INITIALIZE 3
3bce6687
JS
57#endif
58
90a752c2
JS
59#ifndef UISF_HIDEFOCUS
60 #define UISF_HIDEFOCUS 1
7391216e
VS
61#endif
62
90a752c2
JS
63#ifndef UISF_HIDEACCEL
64 #define UISF_HIDEACCEL 2
49bbd59b 65#endif
2b5f62a0 66
90a752c2
JS
67#ifndef OFN_EXPLORER
68 #define OFN_EXPLORER 0x00080000
521e585f
VZ
69#endif
70
90a752c2
JS
71#ifndef OFN_ENABLESIZING
72 #define OFN_ENABLESIZING 0x00800000
8318f30f
CE
73#endif
74
90a752c2
JS
75// Needed by window.cpp
76#if wxUSE_MOUSEWHEEL
77 #ifndef WM_MOUSEWHEEL
78 #define WM_MOUSEWHEEL 0x020A
79 #endif
b9e52a19
VZ
80 #ifndef WM_MOUSEHWHEEL
81 #define WM_MOUSEHWHEEL 0x020E
82 #endif
90a752c2
JS
83 #ifndef WHEEL_DELTA
84 #define WHEEL_DELTA 120
85 #endif
86 #ifndef SPI_GETWHEELSCROLLLINES
87 #define SPI_GETWHEELSCROLLLINES 104
88 #endif
5833988c
VZ
89 #ifndef SPI_GETWHEELSCROLLCHARS
90 #define SPI_GETWHEELSCROLLCHARS 108
91 #endif
90a752c2 92#endif // wxUSE_MOUSEWHEEL
8318f30f 93
90a752c2
JS
94// Needed by window.cpp
95#ifndef VK_OEM_1
96 #define VK_OEM_1 0xBA
97 #define VK_OEM_2 0xBF
98 #define VK_OEM_3 0xC0
99 #define VK_OEM_4 0xDB
100 #define VK_OEM_5 0xDC
101 #define VK_OEM_6 0xDD
102 #define VK_OEM_7 0xDE
fc4070fc 103 #define VK_OEM_102 0xE2
8318f30f
CE
104#endif
105
90a752c2
JS
106#ifndef VK_OEM_COMMA
107 #define VK_OEM_PLUS 0xBB
108 #define VK_OEM_COMMA 0xBC
109 #define VK_OEM_MINUS 0xBD
110 #define VK_OEM_PERIOD 0xBE
dd54f5d3 111#endif
7391216e 112
ddec9f1e
JS
113#ifndef SM_TABLETPC
114 #define SM_TABLETPC 86
115#endif
116
117#ifndef INKEDIT_CLASS
118# define INKEDIT_CLASSW L"INKEDIT"
119# ifdef UNICODE
120# define INKEDIT_CLASS INKEDIT_CLASSW
121# else
122# define INKEDIT_CLASS "INKEDIT"
123# endif
124#endif
125
126#ifndef EM_SETINKINSERTMODE
127# define EM_SETINKINSERTMODE (WM_USER + 0x0204)
128#endif
129
130#ifndef EM_SETUSEMOUSEFORINPUT
131#define EM_SETUSEMOUSEFORINPUT (WM_USER + 0x224)
132#endif
133
e7b8da22
JS
134#ifndef TPM_RECURSE
135#define TPM_RECURSE 1
136#endif
137
50f3c41d 138
801a5441
VZ
139#ifndef WS_EX_LAYOUTRTL
140#define WS_EX_LAYOUTRTL 0x00400000
141#endif
142
2e992e06
VZ
143#ifndef WS_EX_COMPOSITED
144#define WS_EX_COMPOSITED 0x02000000L
145#endif
146
50f3c41d 147#ifndef WS_EX_LAYERED
801a5441 148#define WS_EX_LAYERED 0x00080000
50f3c41d
RD
149#endif
150
151#ifndef LWA_ALPHA
152#define LWA_ALPHA 2
153#endif
154
261fb041
WS
155#ifndef QS_ALLPOSTMESSAGE
156#define QS_ALLPOSTMESSAGE 0
157#endif
158
a87f2821
MW
159/*
160 * The following are required for VC++ 5 when the PSDK is not available.
161 */
162
163#if defined __VISUALC__ && __VISUALC__ <= 1100
164
165#ifndef VER_NT_WORKSTATION
166
167typedef struct _OSVERSIONINFOEXA {
168 DWORD dwOSVersionInfoSize;
169 DWORD dwMajorVersion;
170 DWORD dwMinorVersion;
171 DWORD dwBuildNumber;
172 DWORD dwPlatformId;
173 CHAR szCSDVersion[128];
174 WORD wServicePackMajor;
175 WORD wServicePackMinor;
176 WORD wSuiteMask;
177 BYTE wProductType;
178 BYTE wReserved;
179} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
180typedef struct _OSVERSIONINFOEXW {
181 DWORD dwOSVersionInfoSize;
182 DWORD dwMajorVersion;
183 DWORD dwMinorVersion;
184 DWORD dwBuildNumber;
185 DWORD dwPlatformId;
186 WCHAR szCSDVersion[128];
187 WORD wServicePackMajor;
188 WORD wServicePackMinor;
189 WORD wSuiteMask;
190 BYTE wProductType;
191 BYTE wReserved;
192} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW;
193
194#ifdef UNICODE
195typedef OSVERSIONINFOW OSVERSIONINFO,*POSVERSIONINFO,*LPOSVERSIONINFO;
196typedef OSVERSIONINFOEXW OSVERSIONINFOEX,*POSVERSIONINFOEX,*LPOSVERSIONINFOEX;
197#else
198typedef OSVERSIONINFOA OSVERSIONINFO,*POSVERSIONINFO,*LPOSVERSIONINFO;
199typedef OSVERSIONINFOEXA OSVERSIONINFOEX,*POSVERSIONINFOEX,*LPOSVERSIONINFOEX;
200#endif
201
202#endif // defined VER_NT_WORKSTATION
203
204#ifndef CP_SYMBOL
205 #define CP_SYMBOL 42
206#endif
207
208// NMLVCUSTOMDRAW originally didn't have the iSubItem member. It was added
209// with IE4, as was IPN_FIRST which is used as a test :-(.
210//
1b88201f 211#ifndef IPN_FIRST
a87f2821
MW
212
213typedef struct wxtagNMLVCUSTOMDRAW_ {
214 NMCUSTOMDRAW nmcd;
215 COLORREF clrText;
216 COLORREF clrTextBk;
217 int iSubItem;
218} wxNMLVCUSTOMDRAW_, *wxLPNMLVCUSTOMDRAW_;
219
220#define NMLVCUSTOMDRAW wxNMLVCUSTOMDRAW_
221#define LPNMLVCUSTOMDRAW wxLPNMLVCUSTOMDRAW_
222
1b88201f 223#endif // defined IPN_FIRST
a87f2821
MW
224
225#endif // defined __VISUALC__ && __VISUALC__ <= 1100
226
33f4afdb
VZ
227// ----------------------------------------------------------------------------
228// menu stuff
229// ----------------------------------------------------------------------------
230
231#ifndef MIIM_BITMAP
232 #define MIIM_STRING 0x00000040
233 #define MIIM_BITMAP 0x00000080
234 #define MIIM_FTYPE 0x00000100
235 #define HBMMENU_CALLBACK ((HBITMAP) -1)
236
237 typedef struct tagMENUINFO
238 {
239 DWORD cbSize;
240 DWORD fMask;
241 DWORD dwStyle;
242 UINT cyMax;
243 HBRUSH hbrBack;
244 DWORD dwContextHelpID;
245 DWORD dwMenuData;
246 } MENUINFO, FAR *LPMENUINFO;
247#endif // MIIM_BITMAP &c
248
e2478fde 249// ----------------------------------------------------------------------------
659d0ee8
VZ
250// definitions related to ListView and Header common controls, needed by
251// msw/listctrl.cpp and msw/headerctrl.cpp
e2478fde
VZ
252// ----------------------------------------------------------------------------
253
659d0ee8
VZ
254#ifndef I_IMAGENONE
255 #define I_IMAGENONE (-2)
256#endif
257
aec26358
WS
258#ifndef LVS_EX_FULLROWSELECT
259 #define LVS_EX_FULLROWSELECT 0x00000020
260#endif
261
2036bdd3
VZ
262// LVS_EX_LABELTIP is not supported by Windows CE, don't define it there
263#if !defined(LVS_EX_LABELTIP) && !defined(__WXWINCE__)
90a752c2 264 #define LVS_EX_LABELTIP 0x00004000
e2478fde
VZ
265#endif
266
05886ed3
RD
267#ifndef LVS_EX_SUBITEMIMAGES
268 #define LVS_EX_SUBITEMIMAGES 0x00000002
269#endif
270
06525673
JS
271#ifndef HDN_GETDISPINFOW
272 #define HDN_GETDISPINFOW (HDN_FIRST-29)
273#endif
274
a58c5d3e
VZ
275#ifndef HDS_HOTTRACK
276 #define HDS_HOTTRACK 4
277#endif
8eb4d1a1
VZ
278#ifndef HDS_FLAT
279 #define HDS_FLAT 0x0200
280#endif
a58c5d3e 281
9e06a15f
VZ
282#ifndef HDF_SORTUP
283 #define HDF_SORTUP 0x0400
284 #define HDF_SORTDOWN 0x0200
285#endif
286
90a752c2 287 /*
c6c2445d
JS
288 * In addition to the above, the following are required for several compilers.
289 */
290
291#if !defined(CCS_VERT)
292#define CCS_VERT 0x00000080L
293#endif
294
664f15dc
JS
295#if !defined(CCS_RIGHT)
296#define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
297#endif
298
c6c2445d
JS
299#if !defined(TB_SETDISABLEDIMAGELIST)
300 #define TB_SETDISABLEDIMAGELIST (WM_USER + 54)
301#endif // !defined(TB_SETDISABLEDIMAGELIST)
302
303#ifndef CFM_BACKCOLOR
304 #define CFM_BACKCOLOR 0x04000000
305#endif
306
8b5d41cc
MW
307#ifndef HANGUL_CHARSET
308 #define HANGUL_CHARSET 129
309#endif
310
311#ifndef CCM_SETUNICODEFORMAT
312 #define CCM_SETUNICODEFORMAT 8197
313#endif
314
315// ----------------------------------------------------------------------------
316// Tree control
317// ----------------------------------------------------------------------------
318
319#ifndef TV_FIRST
320 #define TV_FIRST 0x1100
321#endif
322
323#ifndef TVS_FULLROWSELECT
324 #define TVS_FULLROWSELECT 0x1000
325#endif
326
327#ifndef TVM_SETBKCOLOR
328 #define TVM_SETBKCOLOR (TV_FIRST + 29)
329 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
330#endif
331
c6c2445d
JS
332 /*
333 * The following are required for BC++ 5.5 (none at present.)
90a752c2 334 */
e2478fde 335
90a752c2 336 /*
c6c2445d 337 * The following are specifically required for Digital Mars C++
90a752c2 338 */
e2478fde 339
90a752c2 340#ifdef __DMC__
e2478fde 341
1c7ae45a 342#ifndef VER_NT_WORKSTATION
4aa14001
WS
343typedef struct _OSVERSIONINFOEX {
344 DWORD dwOSVersionInfoSize;
345 DWORD dwMajorVersion;
346 DWORD dwMinorVersion;
347 DWORD dwBuildNumber;
348 DWORD dwPlatformId;
349 TCHAR szCSDVersion[ 128 ];
350 WORD wServicePackMajor;
351 WORD wServicePackMinor;
352 WORD wSuiteMask;
353 BYTE wProductType;
354 BYTE wReserved;
355} OSVERSIONINFOEX;
1c7ae45a 356#endif // !defined(VER_NT_WORKSTATION)
4aa14001
WS
357
358#ifndef _TrackMouseEvent
359 #define _TrackMouseEvent TrackMouseEvent
e2478fde
VZ
360#endif
361
90a752c2
JS
362#ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
363 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
e2478fde
VZ
364#endif
365
a6f7daee
WS
366#ifndef LVM_GETSUBITEMRECT
367 #define LVM_GETSUBITEMRECT (0x1000 + 56)
368#endif
369
90a752c2
JS
370#ifndef LVCF_IMAGE
371 #define LVCF_IMAGE 0x0010
e2478fde
VZ
372#endif
373
90a752c2
JS
374#ifndef Header_GetItemRect
375 #define Header_GetItemRect(w,i,r) \
376 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
3ec4107d
MB
377#endif
378
90a752c2
JS
379#ifndef HDM_GETITEMRECT
380 #define HDM_GETITEMRECT (HDM_FIRST+7)
3ec4107d
MB
381#endif
382
90a752c2
JS
383#ifndef ListView_GetHeader
384 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
3ec4107d
MB
385#endif
386
a6f7daee
WS
387#ifndef ListView_GetSubItemRect
388 #define ListView_GetSubItemRect(w, i, s, c, p) (HWND)SendMessage(w,LVM_GETSUBITEMRECT,i, ((p) ? ((((LPRECT)(p))->top = s), (((LPRECT)(p))->left = c), (LPARAM)(p)) : (LPARAM)(LPRECT)NULL))
389#endif
390
90a752c2
JS
391#ifndef LVM_GETHEADER
392 #define LVM_GETHEADER (LVM_FIRST+31)
3ec4107d
MB
393#endif
394
e229d82e
VS
395#ifndef HDLAYOUT
396 #define HDLAYOUT HD_LAYOUT
397#endif
398
399#ifndef HDITEM
400 #define HDITEM HD_ITEM
401#endif
402
403#ifndef NMHEADER
404 #define NMHEADER HD_NOTIFY
405#endif
406
56873923
VZ
407#ifndef HDS_DRAGDROP
408 #define HDS_DRAGDROP 0x0040
409#endif
e229d82e 410#ifndef HDS_FULLDRAG
56873923 411 #define HDS_FULLDRAG 0x0080
e229d82e
VS
412#endif
413
56873923 414
e229d82e
VS
415#ifndef HDN_BEGINDRAG
416 #define HDN_BEGINDRAG (HDN_FIRST - 11)
417#endif
418
419#ifndef HDN_ENDDRAG
420 #define HDN_ENDDRAG (HDN_FIRST - 10)
421#endif
422
90a752c2
JS
423#ifndef LVSICF_NOSCROLL
424 #define LVSICF_NOINVALIDATEALL 0x0001
425 #define LVSICF_NOSCROLL 0x0002
3ec4107d
MB
426#endif
427
4aa14001
WS
428#ifndef CP_SYMBOL
429 #define CP_SYMBOL 42
430#endif
431
3ea19afd
WS
432// ----------------------------------------------------------------------------
433// wxDisplay
434// ----------------------------------------------------------------------------
435
436// The windows headers with Digital Mars lack some typedefs.
437// typedef them as my_XXX and then #define to rename to XXX in case
438// a newer version of Digital Mars fixes the headers
439// (or up to date PSDK is in use with older version)
440// also we use any required definition (MONITOR_DEFAULTTONULL) to recognize
441// whether whole missing block needs to be included
442
443#ifndef MONITOR_DEFAULTTONULL
444
445 #define HMONITOR_DECLARED
446 DECLARE_HANDLE(HMONITOR);
447 typedef BOOL(CALLBACK* my_MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
448 #define MONITORENUMPROC my_MONITORENUMPROC
449 typedef struct my_tagMONITORINFO {
450 DWORD cbSize;
451 RECT rcMonitor;
452 RECT rcWork;
453 DWORD dwFlags;
454 } my_MONITORINFO,*my_LPMONITORINFO;
455 #define MONITORINFO my_MONITORINFO
456 #define LPMONITORINFO my_LPMONITORINFO
457
458 typedef struct my_MONITORINFOEX : public my_tagMONITORINFO
459 {
460 TCHAR szDevice[CCHDEVICENAME];
461 } my_MONITORINFOEX, *my_LPMONITORINFOEX;
462 #define MONITORINFOEX my_MONITORINFOEX
463 #define LPMONITORINFOEX my_LPMONITORINFOEX
464
465 #ifndef MONITOR_DEFAULTTONULL
466 #define MONITOR_DEFAULTTONULL 0
467 #endif // MONITOR_DEFAULTTONULL
468
469 #ifndef MONITORINFOF_PRIMARY
470 #define MONITORINFOF_PRIMARY 1
471 #endif // MONITORINFOF_PRIMARY
472
473 #ifndef DDENUM_ATTACHEDSECONDARYDEVICES
474 #define DDENUM_ATTACHEDSECONDARYDEVICES 1
475 #endif
476
477#endif // MONITOR_DEFAULTTONULL
478
05e3a383
VZ
479// ----------------------------------------------------------------------------
480// Tree control
481// ----------------------------------------------------------------------------
482
483#ifndef TVIS_FOCUSED
484 #define TVIS_FOCUSED 0x0001
485#endif
486
05e3a383
VZ
487#ifndef TVS_CHECKBOXES
488 #define TVS_CHECKBOXES 0x0100
489#endif
490
03de0ad4
WS
491#ifndef TVITEM
492 #define TVITEM TV_ITEM
493#endif
494
446ea107 495#endif
90a752c2 496 // DMC++
446ea107 497
90a752c2 498 /*
c6c2445d 499 * The following are specifically required for OpenWatcom C++ (none at present)
90a752c2 500 */
446ea107 501
90a752c2 502#if defined(__WATCOMC__)
4a6619bb 503#endif
ae54422d 504
90a752c2 505 /*
c6c2445d 506 * The following are specifically required for MinGW (none at present)
90a752c2 507 */
23fbd31a 508
90a752c2 509#if defined (__MINGW32__)
aad7e71c
JS
510
511#if !wxCHECK_W32API_VERSION(3,1)
512
513#include <windows.h>
514#include "wx/msw/winundef.h"
515
516typedef struct
517{
518 RECT rgrc[3];
519 WINDOWPOS *lppos;
520} NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
521
522#endif
523
1d7d04d7
JS
524#endif
525
a1a17906
SL
526//Various defines that will be needed by mingw and possibly VC++6
527//Used by the webview library
1d7d04d7 528
a1a17906 529#ifndef DISPID_COMMANDSTATECHANGE
1d7d04d7 530#define DISPID_COMMANDSTATECHANGE 105
a1a17906
SL
531#endif
532
533#ifndef DISPID_NAVIGATECOMPLETE2
1d7d04d7 534#define DISPID_NAVIGATECOMPLETE2 252
a1a17906
SL
535#endif
536
537#ifndef DISPID_NAVIGATEERROR
1d7d04d7 538#define DISPID_NAVIGATEERROR 271
a1a17906
SL
539#endif
540
541#ifndef DISPID_NEWWINDOW3
1d7d04d7 542#define DISPID_NEWWINDOW3 273
a1a17906
SL
543#endif
544
545#ifndef INET_E_ERROR_FIRST
1d7d04d7 546#define INET_E_ERROR_FIRST 0x800C0002L
a1a17906
SL
547#endif
548
549#ifndef INET_E_INVALID_URL
1d7d04d7 550#define INET_E_INVALID_URL 0x800C0002L
a1a17906
SL
551#endif
552
553#ifndef INET_E_NO_SESSION
1d7d04d7 554#define INET_E_NO_SESSION 0x800C0003L
a1a17906
SL
555#endif
556
557#ifndef INET_E_CANNOT_CONNECT
1d7d04d7 558#define INET_E_CANNOT_CONNECT 0x800C0004L
a1a17906
SL
559#endif
560
561#ifndef INET_E_RESOURCE_NOT_FOUND
1d7d04d7 562#define INET_E_RESOURCE_NOT_FOUND 0x800C0005L
a1a17906
SL
563#endif
564
565#ifndef INET_E_OBJECT_NOT_FOUND
1d7d04d7 566#define INET_E_OBJECT_NOT_FOUND 0x800C0006L
a1a17906
SL
567#endif
568
569#ifndef INET_E_DATA_NOT_AVAILABLE
1d7d04d7 570#define INET_E_DATA_NOT_AVAILABLE 0x800C0007L
a1a17906
SL
571#endif
572
573#ifndef INET_E_DOWNLOAD_FAILURE
1d7d04d7 574#define INET_E_DOWNLOAD_FAILURE 0x800C0008L
a1a17906
SL
575#endif
576
577#ifndef INET_E_AUTHENTICATION_REQUIRED
1d7d04d7 578#define INET_E_AUTHENTICATION_REQUIRED 0x800C0009L
a1a17906
SL
579#endif
580
581#ifndef INET_E_NO_VALID_MEDIA
1d7d04d7 582#define INET_E_NO_VALID_MEDIA 0x800C000AL
a1a17906
SL
583#endif
584
585#ifndef INET_E_CONNECTION_TIMEOUT
1d7d04d7 586#define INET_E_CONNECTION_TIMEOUT 0x800C000BL
a1a17906
SL
587#endif
588
589#ifndef INET_E_INVALID_REQUEST
1d7d04d7 590#define INET_E_INVALID_REQUEST 0x800C000CL
a1a17906
SL
591#endif
592
593#ifndef INET_E_UNKNOWN_PROTOCOL
1d7d04d7 594#define INET_E_UNKNOWN_PROTOCOL 0x800C000DL
a1a17906
SL
595#endif
596
597#ifndef INET_E_SECURITY_PROBLEM
1d7d04d7 598#define INET_E_SECURITY_PROBLEM 0x800C000EL
a1a17906
SL
599#endif
600
601#ifndef INET_E_CANNOT_LOAD_DATA
1d7d04d7 602#define INET_E_CANNOT_LOAD_DATA 0x800C000FL
a1a17906
SL
603#endif
604
605#ifndef INET_E_CANNOT_INSTANTIATE_OBJECT
1d7d04d7 606#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010L
a1a17906
SL
607#endif
608
609#ifndef INET_E_QUERYOPTION_UNKNOWN
1d7d04d7 610#define INET_E_QUERYOPTION_UNKNOWN 0x800C0013L
a1a17906
SL
611#endif
612
613#ifndef INET_E_REDIRECT_FAILED
1d7d04d7 614#define INET_E_REDIRECT_FAILED 0x800C0014L
a1a17906
SL
615#endif
616
617#ifndef INET_E_REDIRECT_TO_DIR
1d7d04d7 618#define INET_E_REDIRECT_TO_DIR 0x800C0015L
a1a17906
SL
619#endif
620
621#ifndef INET_E_CANNOT_LOCK_REQUEST
1d7d04d7 622#define INET_E_CANNOT_LOCK_REQUEST 0x800C0016L
a1a17906
SL
623#endif
624
625#ifndef INET_E_USE_EXTEND_BINDING
1d7d04d7 626#define INET_E_USE_EXTEND_BINDING 0x800C0017L
a1a17906
SL
627#endif
628
629#ifndef INET_E_TERMINATED_BIND
1d7d04d7 630#define INET_E_TERMINATED_BIND 0x800C0018L
a1a17906
SL
631#endif
632
633#ifndef INET_E_INVALID_CERTIFICATE
1d7d04d7 634#define INET_E_INVALID_CERTIFICATE 0x800C0019L
a1a17906
SL
635#endif
636
637#ifndef INET_E_CODE_DOWNLOAD_DECLINED
1d7d04d7 638#define INET_E_CODE_DOWNLOAD_DECLINED 0x800C0100L
a1a17906 639#endif
1d7d04d7 640
a1a17906
SL
641#ifndef INET_E_RESULT_DISPATCHED
642#define INET_E_RESULT_DISPATCHED 0x800C0200L
1d7d04d7
JS
643#endif
644
a1a17906
SL
645#ifndef INET_E_CANNOT_REPLACE_SFP_FILE
646#define INET_E_CANNOT_REPLACE_SFP_FILE 0x800C0300L
1d7d04d7
JS
647#endif
648
649#ifndef INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY
650#define INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY 0x800C0500L
651#endif
652
653#ifndef INET_E_CODE_INSTALL_SUPPRESSED
654#define INET_E_CODE_INSTALL_SUPPRESSED 0x800C0400L
655#endif
656
c4dae34d
VS
657#ifndef MUI_LANGUAGE_NAME
658#define MUI_LANGUAGE_NAME 0x8
659#endif
660
3e6807d7
VZ
661//We need to check if we are using MinGW or mingw-w64 as their
662//definitions are different
ad410224
SL
663
664#ifdef __MINGW32__
665#include <_mingw.h>
666#endif
667
3e6807d7
VZ
668#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
669typedef enum CommandStateChangeConstants {
670 CSC_UPDATECOMMANDS = (int) 0xFFFFFFFF,
671 CSC_NAVIGATEFORWARD = 0x1,
672 CSC_NAVIGATEBACK = 0x2
673} CommandStateChangeConstants;
41b8fe99
WS
674#endif
675
90a752c2
JS
676 /*
677 * In addition to the declarations for VC++, the following are required for WinCE
678 */
1a838ff5 679
fe5c9b3e
VZ
680#ifdef __WXWINCE__
681 #include "wx/msw/wince/missing.h"
d61c1a6f
JS
682#endif
683
24aab8e8
MW
684 /*
685 * The following are specifically required for Wine
686 */
687
688#ifdef __WINE__
689 #ifndef ENUM_CURRENT_SETTINGS
690 #define ENUM_CURRENT_SETTINGS ((DWORD)-1)
691 #endif
692 #ifndef BROADCAST_QUERY_DENY
693 #define BROADCAST_QUERY_DENY 1112363332
694 #endif
695#endif // defined __WINE__
696
6235846c
VZ
697#ifndef INVALID_FILE_ATTRIBUTES
698 #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
699#endif
700
7391216e
VS
701#endif
702 // _WX_MISSING_H_