Fixed RGBQUAD/COLORREF mixup in CreateMappedBitmap().
[wine.git] / include / crtdll.h
blob3d5a8155058e9fd898ba133cfe67ea0e239ddcc5
1 #ifndef __WINE_CRTDLL_H
2 #define __WINE_CRTDLL_H
4 #include "windef.h"
6 #define CRTDLL_LC_ALL 0
7 #define CRTDLL_LC_COLLATE 1
8 #define CRTDLL_LC_CTYPE 2
9 #define CRTDLL_LC_MONETARY 3
10 #define CRTDLL_LC_NUMERIC 4
11 #define CRTDLL_LC_TIME 5
12 #define CRTDLL_LC_MIN LC_ALL
13 #define CRTDLL_LC_MAX LC_TIME
15 /* ctype defines */
16 #define CRTDLL_UPPER 0x1
17 #define CRTDLL_LOWER 0x2
18 #define CRTDLL_DIGIT 0x4
19 #define CRTDLL_SPACE 0x8
20 #define CRTDLL_PUNCT 0x10
21 #define CRTDLL_CONTROL 0x20
22 #define CRTDLL_BLANK 0x40
23 #define CRTDLL_HEX 0x80
24 #define CRTDLL_LEADBYTE 0x8000
25 #define CRTDLL_ALPHA (0x0100|CRTDLL_UPPER|CRTDLL_LOWER)
27 /* function prototypes used in crtdll.c */
28 extern int LastErrorToErrno(DWORD);
30 void * __cdecl CRTDLL_malloc( DWORD size );
31 void __cdecl CRTDLL_free( void *ptr );
33 LPSTR __cdecl CRTDLL__mbsinc( LPCSTR str );
34 INT __cdecl CRTDLL__mbslen( LPCSTR str );
35 LPWSTR __cdecl CRTDLL__wcsdup( LPCWSTR str );
36 INT __cdecl CRTDLL__wcsicmp( LPCWSTR str1, LPCWSTR str2 );
37 INT __cdecl CRTDLL__wcsicoll( LPCWSTR str1, LPCWSTR str2 );
38 LPWSTR __cdecl CRTDLL__wcslwr( LPWSTR str );
39 INT __cdecl CRTDLL__wcsnicmp( LPCWSTR str1, LPCWSTR str2, INT n );
40 LPWSTR __cdecl CRTDLL__wcsnset( LPWSTR str, WCHAR c, INT n );
41 LPWSTR __cdecl CRTDLL__wcsrev( LPWSTR str );
42 LPWSTR __cdecl CRTDLL__wcsset( LPWSTR str, WCHAR c );
43 LPWSTR __cdecl CRTDLL__wcsupr( LPWSTR str );
44 INT __cdecl CRTDLL_mbstowcs( LPWSTR dst, LPCSTR src, INT n );
45 INT __cdecl CRTDLL_mbtowc( WCHAR *dst, LPCSTR str, INT n );
46 WCHAR __cdecl CRTDLL_towlower( WCHAR ch );
47 WCHAR __cdecl CRTDLL_towupper( WCHAR ch );
48 LPWSTR __cdecl CRTDLL_wcscat( LPWSTR dst, LPCWSTR src );
49 LPWSTR __cdecl CRTDLL_wcschr( LPCWSTR str, WCHAR ch );
50 INT __cdecl CRTDLL_wcscmp( LPCWSTR str1, LPCWSTR str2 );
51 DWORD __cdecl CRTDLL_wcscoll( LPCWSTR str1, LPCWSTR str2 );
52 LPWSTR __cdecl CRTDLL_wcscpy( LPWSTR dst, LPCWSTR src );
53 INT __cdecl CRTDLL_wcscspn( LPCWSTR str, LPCWSTR reject );
54 INT __cdecl CRTDLL_wcslen( LPCWSTR str );
55 LPWSTR __cdecl CRTDLL_wcsncat( LPWSTR s1, LPCWSTR s2, INT n );
56 INT __cdecl CRTDLL_wcsncmp( LPCWSTR str1, LPCWSTR str2, INT n );
57 LPWSTR __cdecl CRTDLL_wcsncpy( LPWSTR s1, LPCWSTR s2, INT n );
58 LPWSTR __cdecl CRTDLL_wcspbrk( LPCWSTR str, LPCWSTR accept );
59 LPWSTR __cdecl CRTDLL_wcsrchr( LPWSTR str, WCHAR ch );
60 INT __cdecl CRTDLL_wcsspn( LPCWSTR str, LPCWSTR accept );
61 LPWSTR __cdecl CRTDLL_wcsstr( LPCWSTR str, LPCWSTR sub );
62 LPWSTR __cdecl CRTDLL_wcstok( LPWSTR str, LPCWSTR delim );
63 INT __cdecl CRTDLL_wcstombs( LPSTR dst, LPCWSTR src, INT n );
64 INT __cdecl CRTDLL_wctomb( LPSTR dst, WCHAR ch );
66 #ifdef notyet
67 #define _mbsinc CRTDLL__mbsinc
68 #define _mbslen CRTDLL__mbslen
69 #define _wcsdup CRTDLL__wcsdup
70 #define _wcsicmp CRTDLL__wcsicmp
71 #define _wcsicoll CRTDLL__wcsicoll
72 #define _wcslwr CRTDLL__wcslwr
73 #define _wcsnicmp CRTDLL__wcsnicmp
74 #define _wcsnset CRTDLL__wcsnset
75 #define _wcsrev CRTDLL__wcsrev
76 #define _wcsset CRTDLL__wcsset
77 #define _wcsupr CRTDLL__wcsupr
78 #define mbstowcs CRTDLL_mbstowcs
79 #define mbtowc CRTDLL_mbtowc
80 #define towlower CRTDLL_towlower
81 #define towupper CRTDLL_towupper
82 #define wcscat CRTDLL_wcscat
83 #define wcschr CRTDLL_wcschr
84 #define wcscmp CRTDLL_wcscmp
85 #define wcscoll CRTDLL_wcscoll
86 #define wcscpy CRTDLL_wcscpy
87 #define wcscspn CRTDLL_wcscspn
88 #define wcslen CRTDLL_wcslen
89 #define wcsncat CRTDLL_wcsncat
90 #define wcsncmp CRTDLL_wcsncmp
91 #define wcsncpy CRTDLL_wcsncpy
92 #define wcspbrk CRTDLL_wcspbrk
93 #define wcsrchr CRTDLL_wcsrchr
94 #define wcsspn CRTDLL_wcsspn
95 #define wcsstr CRTDLL_wcsstr
96 #define wcstok CRTDLL_wcstok
97 #define wcstombs CRTDLL_wcstombs
98 #define wctomb CRTDLL_wctomb
99 #endif
101 #endif /* __WINE_CRTDLL_H */