comctl32/listview: Implement dragging with right button with a message loop.
[wine] / include / msvcrt / mbctype.h
1 /*
2  * Multibyte char definitions
3  *
4  * Copyright 2001 Francois Gouget.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 #ifndef __WINE_MBCTYPE_H
21 #define __WINE_MBCTYPE_H
22
23 #include <crtdefs.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 #ifdef __i386__
30 unsigned char* __cdecl __p__mbctype(void);
31 #define _mbctype                   (__p__mbctype())
32 #else
33 extern unsigned char MSVCRT_mbctype[];
34 #endif
35
36 #define _MS     0x01
37 #define _MP     0x02
38 #define _M1     0x04
39 #define _M2     0x08
40
41 #define _SBUP   0x10
42 #define _SBLOW  0x20
43
44 #define _MBC_SINGLE     0
45 #define _MBC_LEAD       1
46 #define _MBC_TRAIL      2
47 #define _MBC_ILLEGAL    -1
48
49 #define _KANJI_CP   932
50
51 #define _MB_CP_SBCS     0
52 #define _MB_CP_OEM      -2
53 #define _MB_CP_ANSI     -3
54 #define _MB_CP_LOCALE   -4
55
56 int __cdecl _getmbcp(void);
57 int __cdecl _ismbbalnum(unsigned int);
58 int __cdecl _ismbbalpha(unsigned int);
59 int __cdecl _ismbbgraph(unsigned int);
60 int __cdecl _ismbbkalnum(unsigned int);
61 int __cdecl _ismbbkana(unsigned int);
62 int __cdecl _ismbbkprint(unsigned int);
63 int __cdecl _ismbbkpunct(unsigned int);
64 int __cdecl _ismbbprint(unsigned int);
65 int __cdecl _ismbbpunct(unsigned int);
66 int __cdecl _setmbcp(int);
67
68 #ifndef _MBLEADTRAIL_DEFINED
69 #define _MBLEADTRAIL_DEFINED
70 int __cdecl _ismbblead(unsigned int);
71 int __cdecl _ismbbtrail(unsigned int);
72 int __cdecl _ismbslead(const unsigned char*,const unsigned char*);
73 int __cdecl _ismbstrail(const unsigned char*,const unsigned char*);
74 #endif /* _MBLEADTRAIL_DEFINED */
75
76 #ifdef __cplusplus
77 }
78 #endif
79
80 #endif /* __WINE_MBCTYPE_H */