38
42
inline DWORD WINAPI GetLastError(void) { return errno; }
39
43
inline void WINAPI SetLastError( DWORD err ) { errno = err; }
41
#define AreFileApisANSI() 1
45
#define AreFileApisANSI() (1)
47
void Sleep(unsigned millisleep);
49
typedef pid_t t_processID;
51
t_processID GetCurrentProcess(void);
53
#define NORMAL_PRIORITY_CLASS (0)
54
#define IDLE_PRIORITY_CLASS (10)
55
void SetPriorityClass(t_processID , int priority);
59
typedef wxWindow *HWND;
61
#define MB_ICONERROR (0x00000200) // wxICON_ERROR
62
#define MB_YESNOCANCEL (0x00000002 | 0x00000008 | 0x00000010) // wxYES | wxNO | wxCANCEL
63
#define MB_ICONQUESTION (0x00000400) // wxICON_QUESTION
64
#define MB_TASKMODAL (0) // FIXME
65
#define MB_SYSTEMMODAL (0) // FIXME
67
#define MB_OK (0) // FIXME !
68
#define MB_ICONSTOP (0) // FIXME !
69
#define MB_OKCANCEL (0) // FIXME !
71
#define MessageBox MessageBoxW
72
int MessageBoxW(wxWindow * parent, const TCHAR * mes, const TCHAR * title,int flag);
74
typedef void *HINSTANCE;
76
typedef int INT_PTR; // FIXME 64 bits ?
77
typedef unsigned int UINT_PTR; // FIXME 64 bits ?
78
typedef long LONG_PTR; // FIXME 64 bits ?
79
typedef long DWORD_PTR; // FIXME 64 bits ?
80
typedef UINT_PTR WPARAM;
83
LPARAM shall be 'long' because of CListView::SortItems and wxListCtrl::SortItems :
85
typedef LONG_PTR LPARAM;
86
typedef LONG_PTR LRESULT;
88
#define CALLBACK /* */
90
/************ LANG ***********/
93
LANGID GetUserDefaultLangID(void);
94
LANGID GetSystemDefaultLangID(void);
96
#define PRIMARYLANGID(l) ((WORD)(l) & 0x3ff)
97
#define SUBLANGID(l) ((WORD)(l) >> 10)