4 * This file is part of the ReactOS PSDK package.
7 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
9 * THIS SOFTWARE IS NOT COPYRIGHTED
11 * This source code is offered for use in the public domain. You may
12 * use, modify or distribute it freely.
14 * This code is distributed in the hope that it will be useful but
15 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
16 * DISCLAIMED. This includes but is not limited to warranties of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28 #include <sdkddkver.h>
30 // FIXME: Shouldn't be included!
34 /* Helper macro to enable gcc's extension. */
35 #ifndef __GNU_EXTENSION
37 #define __GNU_EXTENSION __extension__
39 #define __GNU_EXTENSION
43 /* Pseudo Modifiers for Input Parameters */
70 /* Defines the "size" of an any-size array */
72 #define ANYSIZE_ARRAY 1
75 /* Constant modifier */
90 #define NULL ((void *)0)
91 #define NULL64 ((void * POINTER_64)0)
98 // We should use the -fms-extensions compiler flag for gcc,
99 // and clean up the mess.
101 #ifndef __ANONYMOUS_DEFINED
102 #define __ANONYMOUS_DEFINED
104 #ifndef NONAMELESSUNION
106 #define _ANONYMOUS_UNION __GNU_EXTENSION
107 #define _ANONYMOUS_STRUCT __GNU_EXTENSION
108 #elif defined(__WATCOMC__) || defined(_MSC_VER)
109 #define _ANONYMOUS_UNION
110 #define _ANONYMOUS_STRUCT
111 #endif /* __GNUC__/__WATCOMC__ */
112 #endif /* NONAMELESSUNION */
114 #ifndef _ANONYMOUS_UNION
115 #define _ANONYMOUS_UNION
116 #define _UNION_NAME(x) x
117 #define DUMMYUNIONNAME u
118 #define DUMMYUNIONNAME2 u2
119 #define DUMMYUNIONNAME3 u3
120 #define DUMMYUNIONNAME4 u4
121 #define DUMMYUNIONNAME5 u5
122 #define DUMMYUNIONNAME6 u6
123 #define DUMMYUNIONNAME7 u7
124 #define DUMMYUNIONNAME8 u8
126 #define _UNION_NAME(x)
127 #define DUMMYUNIONNAME
128 #define DUMMYUNIONNAME2
129 #define DUMMYUNIONNAME3
130 #define DUMMYUNIONNAME4
131 #define DUMMYUNIONNAME5
132 #define DUMMYUNIONNAME6
133 #define DUMMYUNIONNAME7
134 #define DUMMYUNIONNAME8
137 #ifndef _ANONYMOUS_STRUCT
138 #define _ANONYMOUS_STRUCT
139 #define _STRUCT_NAME(x) x
140 #define DUMMYSTRUCTNAME s
141 #define DUMMYSTRUCTNAME2 s2
142 #define DUMMYSTRUCTNAME3 s3
143 #define DUMMYSTRUCTNAME4 s4
144 #define DUMMYSTRUCTNAME5 s5
146 #define _STRUCT_NAME(x)
147 #define DUMMYSTRUCTNAME
148 #define DUMMYSTRUCTNAME2
149 #define DUMMYSTRUCTNAME3
150 #define DUMMYSTRUCTNAME4
151 #define DUMMYSTRUCTNAME5
154 #endif /* __ANONYMOUS_DEFINED */
159 #define RESTRICTED_POINTER
162 #define ARGUMENT_PRESENT(ArgumentPointer) \
163 ((CHAR*)((ULONG_PTR)(ArgumentPointer)) != (CHAR*)NULL)
165 /* Returns the base address of a structure from a structure member */
166 #ifndef CONTAINING_RECORD
167 #define CONTAINING_RECORD(address, type, field) \
168 ((type *)(((ULONG_PTR)address) - (ULONG_PTR)(&(((type *)0)->field))))
171 /* Returns the byte offset of the specified structure's member */
173 #define FIELD_OFFSET(Type, Field) ((LONG)(LONG_PTR)&(((Type*) 0)->Field))
175 #define FIELD_OFFSET(Type, Field) __builtin_offsetof(Type, Field)
178 /* Returns the type's alignment */
179 #if defined(_MSC_VER) && (_MSC_VER >= 1300)
180 #define TYPE_ALIGNMENT(t) __alignof(t)
182 #define TYPE_ALIGNMENT(t) FIELD_OFFSET( struct { char x; t test; }, test )
185 /* Calling Conventions */
187 #define FASTCALL __fastcall
192 #define NTAPI __stdcall
195 /* Import and Export Specifiers */
197 /* Done the same way as in windef.h for now */
198 #define DECLSPEC_IMPORT __declspec(dllimport)
199 #define DECLSPEC_NORETURN __declspec(noreturn)
201 #ifndef DECLSPEC_ADDRSAFE
202 #if (_MSC_VER >= 1200) && (defined(_M_ALPHA) || defined(_M_AXP64))
203 #define DECLSPEC_ADDRSAFE __declspec(address_safe)
205 #define DECLSPEC_ADDRSAFE
209 #if !defined(_NTSYSTEM_)
210 #define NTSYSAPI DECLSPEC_IMPORT
211 #define NTSYSCALLAPI DECLSPEC_IMPORT
214 #if defined(_NTDLLBUILD_)
217 #define NTSYSCALLAPI DECLSPEC_ADDRSAFE
223 #if (_MSC_VER >= 1200)
224 #define FORCEINLINE __forceinline
226 #define FORCEINLINE __inline
228 #define FORCEINLINE static __inline__ __attribute__((always_inline))
232 #ifndef DECLSPEC_NOINLINE
233 #if (_MSC_VER >= 1300)
234 #define DECLSPEC_NOINLINE __declspec(noinline)
235 #elif defined(__GNUC__)
236 #define DECLSPEC_NOINLINE __attribute__((noinline))
238 #define DECLSPEC_NOINLINE
242 #if !defined(_M_CEE_PURE)
243 #define NTAPI_INLINE NTAPI
248 /* Use to specify structure alignment */
249 #ifndef DECLSPEC_ALIGN
250 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
251 #define DECLSPEC_ALIGN(x) __declspec(align(x))
252 #elif defined(__GNUC__)
253 #define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
255 #define DECLSPEC_ALIGN(x)
259 /* Use to silence unused variable warnings when it is intentional */
260 #define UNREFERENCED_PARAMETER(P) {(P)=(P);}
261 #define UNREFERENCED_LOCAL_VARIABLE(L) {(L)=(L);}
262 #define DBG_UNREFERENCED_PARAMETER(P)
263 #define DBG_UNREFERENCED_LOCAL_VARIABLE(L)
265 /* min/max helper macros */
269 #define min(a,b) (((a) < (b)) ? (a) : (b))
273 #define max(a,b) (((a) > (b)) ? (a) : (b))
276 #endif /* NOMINMAX */
278 /* Tell windef.h that we have defined some basic types */
283 //typedef void * POINTER_64 PVOID64;
284 typedef PVOID PVOID64
; // FIXME!
288 typedef void *HANDLE
;
289 #define DECLARE_HANDLE(n) typedef struct n##__{int i;}*n
291 typedef PVOID HANDLE
;
292 #define DECLARE_HANDLE(n) typedef HANDLE n
294 typedef HANDLE
*PHANDLE
;
296 /* Upper-Case Versions of Some Standard C Types */
302 #if !defined(MIDL_PASS)
306 typedef double DOUBLE
;
309 typedef unsigned char UCHAR
, *PUCHAR
;
310 typedef unsigned short USHORT
, *PUSHORT
;
311 typedef unsigned long ULONG
, *PULONG
;
312 typedef CONST UCHAR
*PCUCHAR
;
313 typedef CONST USHORT
*PCUSHORT
;
314 typedef CONST ULONG
*PCULONG
;
316 typedef USHORT FSHORT
;
318 typedef UCHAR BOOLEAN
, *PBOOLEAN
;
319 typedef ULONG LOGICAL
;
320 typedef ULONG
*PLOGICAL
;
323 typedef SHORT
*PSHORT
;
325 typedef LONG NTSTATUS
;
326 typedef NTSTATUS
*PNTSTATUS
;
327 typedef signed char SCHAR
;
328 typedef SCHAR
*PSCHAR
;
330 #ifndef _HRESULT_DEFINED
331 #define _HRESULT_DEFINED
332 typedef LONG HRESULT
;
336 __GNU_EXTENSION
typedef __int64 LONGLONG
, *PLONGLONG
;
337 __GNU_EXTENSION
typedef unsigned __int64 ULONGLONG
, *PULONGLONG
;
338 typedef ULONGLONG DWORDLONG
, *PDWORDLONG
;
340 /* Update Sequence Number */
341 typedef LONGLONG USN
;
343 /* ANSI (Multi-byte Character) types */
344 typedef CHAR
*PCHAR
, *LPCH
, *PCH
;
345 typedef CONST CHAR
*LPCCH
, *PCCH
;
346 typedef CHAR
*NPSTR
, *LPSTR
, *PSTR
;
347 typedef PSTR
*PZPSTR
;
348 typedef CONST PSTR
*PCZPSTR
;
349 typedef CONST CHAR
*LPCSTR
, *PCSTR
;
350 typedef PCSTR
*PZPCSTR
;
352 /* Pointer to an Asciiz string */
354 typedef CONST
char *PCSZ
;
356 /* UNICODE (Wide Character) types */
357 typedef wchar_t WCHAR
;
358 typedef WCHAR
*PWCHAR
, *LPWCH
, *PWCH
;
359 typedef CONST WCHAR
*LPCWCH
, *PCWCH
;
360 typedef WCHAR
*NWPSTR
, *LPWSTR
, *PWSTR
;
361 typedef PWSTR
*PZPWSTR
;
362 typedef CONST PWSTR
*PCZPWSTR
;
363 typedef WCHAR UNALIGNED
*LPUWSTR
, *PUWSTR
;
364 typedef CONST WCHAR
*LPCWSTR
, *PCWSTR
;
365 typedef PCWSTR
*PZPCWSTR
;
366 typedef CONST WCHAR UNALIGNED
*LPCUWSTR
, *PCUWSTR
;
368 /* Cardinal Data Types */
369 typedef char CCHAR
, *PCCHAR
;
370 typedef short CSHORT
, *PCSHORT
;
371 typedef ULONG CLONG
, *PCLONG
;
373 /* NLS basics (Locale and Language Ids) */
375 typedef PULONG PLCID
;
376 typedef USHORT LANGID
;
378 /* Used to store a non-float 8 byte aligned structure */
381 _ANONYMOUS_UNION
union
383 __GNU_EXTENSION __int64 UseThisFieldToCopy
;
384 double DoNotUseThisField
;
386 } QUAD
, *PQUAD
, UQUAD
, *PUQUAD
;
388 /* Large Integer Unions */
389 #if defined(MIDL_PASS)
390 typedef struct _LARGE_INTEGER
{
392 typedef union _LARGE_INTEGER
{
393 _ANONYMOUS_STRUCT
struct
403 #endif /* MIDL_PASS */
405 } LARGE_INTEGER
, *PLARGE_INTEGER
;
407 #if defined(MIDL_PASS)
408 typedef struct _ULARGE_INTEGER
{
410 typedef union _ULARGE_INTEGER
{
411 _ANONYMOUS_STRUCT
struct
421 #endif /* MIDL_PASS */
423 } ULARGE_INTEGER
, *PULARGE_INTEGER
;
425 /* Physical Addresses are always treated as 64-bit wide */
426 typedef LARGE_INTEGER PHYSICAL_ADDRESS
, *PPHYSICAL_ADDRESS
;
428 /* Locally Unique Identifier */
429 typedef struct _LUID
{
434 /* Native API Return Value Macros */
435 #define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
436 #define NT_INFORMATION(Status) ((((ULONG)(Status)) >> 30) == 1)
437 #define NT_WARNING(Status) ((((ULONG)(Status)) >> 30) == 2)
438 #define NT_ERROR(Status) ((((ULONG)(Status)) >> 30) == 3)
441 typedef struct _UNICODE_STRING
{
443 USHORT MaximumLength
;
445 } UNICODE_STRING
, *PUNICODE_STRING
;
446 typedef const UNICODE_STRING
* PCUNICODE_STRING
;
447 #define UNICODE_NULL ((WCHAR)0)
449 typedef struct _CSTRING
{
451 USHORT MaximumLength
;
453 } CSTRING
, *PCSTRING
;
454 #define ANSI_NULL ((CHAR)0)
456 typedef struct _STRING
{
458 USHORT MaximumLength
;
462 typedef STRING ANSI_STRING
;
463 typedef PSTRING PANSI_STRING
;
464 typedef STRING OEM_STRING
;
465 typedef PSTRING POEM_STRING
;
466 typedef CONST STRING
* PCOEM_STRING
;
467 typedef STRING CANSI_STRING
;
468 typedef PSTRING PCANSI_STRING
;
470 typedef struct _STRING32
{
472 USHORT MaximumLength
;
474 } STRING32
, *PSTRING32
,
475 UNICODE_STRING32
, *PUNICODE_STRING32
,
476 ANSI_STRING32
, *PANSI_STRING32
;
478 typedef struct _STRING64
{
480 USHORT MaximumLength
;
482 } STRING64
, *PSTRING64
,
483 UNICODE_STRING64
, *PUNICODE_STRING64
,
484 ANSI_STRING64
, *PANSI_STRING64
;
487 #define MAKELANGID(p, s) ((((USHORT)(s)) << 10) | (USHORT)(p))
488 #define PRIMARYLANGID(lgid) ((USHORT)(lgid) & 0x3ff)
489 #define SUBLANGID(lgid) ((USHORT)(lgid) >> 10)
491 #define NLS_VALID_LOCALE_MASK 0x000fffff
493 #define MAKELCID(lgid, srtid) ((ULONG)((((ULONG)((USHORT)(srtid))) << 16) | \
494 ((ULONG)((USHORT)(lgid)))))
495 #define MAKESORTLCID(lgid, srtid, ver) \
496 ((ULONG)((MAKELCID(lgid, srtid)) | \
497 (((ULONG)((USHORT)(ver))) << 20)))
498 #define LANGIDFROMLCID(lcid) ((USHORT)(lcid))
499 #define SORTIDFROMLCID(lcid) ((USHORT)((((ULONG)(lcid)) >> 16) & 0xf))
500 #define SORTVERSIONFROMLCID(lcid) ((USHORT)((((ULONG)(lcid)) >> 20) & 0xf))
503 /* Object Attributes */
504 typedef struct _OBJECT_ATTRIBUTES
{
506 HANDLE RootDirectory
;
507 PUNICODE_STRING ObjectName
;
509 PVOID SecurityDescriptor
;
510 PVOID SecurityQualityOfService
;
511 } OBJECT_ATTRIBUTES
, *POBJECT_ATTRIBUTES
;
512 typedef CONST OBJECT_ATTRIBUTES
*PCOBJECT_ATTRIBUTES
;
514 /* Values for the Attributes member */
515 #define OBJ_INHERIT 0x00000002
516 #define OBJ_PERMANENT 0x00000010
517 #define OBJ_EXCLUSIVE 0x00000020
518 #define OBJ_CASE_INSENSITIVE 0x00000040
519 #define OBJ_OPENIF 0x00000080
520 #define OBJ_OPENLINK 0x00000100
521 #define OBJ_KERNEL_HANDLE 0x00000200
522 #define OBJ_FORCE_ACCESS_CHECK 0x00000400
523 #define OBJ_VALID_ATTRIBUTES 0x000007F2
526 #define InitializeObjectAttributes(p,n,a,r,s) { \
527 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
528 (p)->RootDirectory = (r); \
529 (p)->Attributes = (a); \
530 (p)->ObjectName = (n); \
531 (p)->SecurityDescriptor = (s); \
532 (p)->SecurityQualityOfService = NULL; \
536 typedef enum _NT_PRODUCT_TYPE
{
540 } NT_PRODUCT_TYPE
, *PNT_PRODUCT_TYPE
;
542 typedef enum _EVENT_TYPE
{
547 typedef enum _TIMER_TYPE
{
552 typedef enum _WAIT_TYPE
{
557 /* Doubly Linked Lists */
558 typedef struct _LIST_ENTRY
{
559 struct _LIST_ENTRY
*Flink
;
560 struct _LIST_ENTRY
*Blink
;
561 } LIST_ENTRY
, *PLIST_ENTRY
, *RESTRICTED_POINTER PRLIST_ENTRY
;
563 typedef struct LIST_ENTRY32
567 } LIST_ENTRY32
, *PLIST_ENTRY32
;
569 typedef struct LIST_ENTRY64
573 } LIST_ENTRY64
, *PLIST_ENTRY64
;
575 /* Singly Linked Lists */
576 typedef struct _SINGLE_LIST_ENTRY
{
577 struct _SINGLE_LIST_ENTRY
*Next
;
578 } SINGLE_LIST_ENTRY
, *PSINGLE_LIST_ENTRY
;
580 typedef struct _PROCESSOR_NUMBER
{
584 } PROCESSOR_NUMBER
, *PPROCESSOR_NUMBER
;
587 struct _EXCEPTION_RECORD
;
589 typedef EXCEPTION_DISPOSITION
590 (NTAPI
*PEXCEPTION_ROUTINE
)(
591 IN
struct _EXCEPTION_RECORD
*ExceptionRecord
,
592 IN PVOID EstablisherFrame
,
593 IN OUT
struct _CONTEXT
*ContextRecord
,
594 IN OUT PVOID DispatcherContext
);
596 typedef struct _GROUP_AFFINITY
{
600 } GROUP_AFFINITY
, *PGROUP_AFFINITY
;
603 #define RTL_CONSTANT_STRING(s) { sizeof(s)-sizeof((s)[0]), sizeof(s), s }
605 #define RTL_FIELD_SIZE(type, field) (sizeof(((type *)0)->field))
607 #define RTL_NUMBER_OF_V1(A) (sizeof(A)/sizeof((A)[0]))
608 #define RTL_NUMBER_OF_V2(A) RTL_NUMBER_OF_V1(A)
609 #ifdef ENABLE_RTL_NUMBER_OF_V2
610 #define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V2(A)
612 #define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V1(A)
614 #define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
619 #define MINSHORT 0x8000
620 #define MAXSHORT 0x7fff
621 #define MINLONG 0x80000000
622 #define MAXLONG 0x7fffffff
623 #define MAXUCHAR 0xff
624 #define MAXUSHORT 0xffff
625 #define MAXULONG 0xffffffff
626 #define MAXLONGLONG (0x7fffffffffffffffLL)
628 /* Multiplication and Shift Operations */
629 #define Int32x32To64(a,b) ((LONGLONG)(a)*(LONGLONG)(b))
630 #define UInt32x32To64(a,b) ((DWORDLONG)(a)*(DWORDLONG)(b))
631 #define Int64ShllMod32(a,b) ((DWORDLONG)(a)<<(b))
632 #define Int64ShraMod32(a,b) ((LONGLONG)(a)>>(b))
633 #define Int64ShrlMod32(a,b) ((DWORDLONG)(a)>>(b))
635 /* C_ASSERT Definition */
636 #define C_ASSERT(expr) extern char (*c_assert(void)) [(expr) ? 1 : -1]
638 /* Primary language IDs. */
639 #define LANG_NEUTRAL 0x00
640 #define LANG_INVARIANT 0x7f
642 #define LANG_AFRIKAANS 0x36
643 #define LANG_ALBANIAN 0x1c
644 #define LANG_ALSATIAN 0x84
645 #define LANG_AMHARIC 0x5e
646 #define LANG_ARABIC 0x01
647 #define LANG_ARMENIAN 0x2b
648 #define LANG_ASSAMESE 0x4d
649 #define LANG_AZERI 0x2c
650 #define LANG_BASHKIR 0x6d
651 #define LANG_BASQUE 0x2d
652 #define LANG_BELARUSIAN 0x23
653 #define LANG_BENGALI 0x45
654 #define LANG_BRETON 0x7e
655 #define LANG_BOSNIAN 0x1a
656 #define LANG_BOSNIAN_NEUTRAL 0x781a
657 #define LANG_BULGARIAN 0x02
658 #define LANG_CATALAN 0x03
659 #define LANG_CHINESE 0x04
660 #define LANG_CHINESE_SIMPLIFIED 0x04
661 #define LANG_CHINESE_TRADITIONAL 0x7c04
662 #define LANG_CORSICAN 0x83
663 #define LANG_CROATIAN 0x1a
664 #define LANG_CZECH 0x05
665 #define LANG_DANISH 0x06
666 #define LANG_DARI 0x8c
667 #define LANG_DIVEHI 0x65
668 #define LANG_DUTCH 0x13
669 #define LANG_ENGLISH 0x09
670 #define LANG_ESTONIAN 0x25
671 #define LANG_FAEROESE 0x38
672 #define LANG_FARSI 0x29
673 #define LANG_FILIPINO 0x64
674 #define LANG_FINNISH 0x0b
675 #define LANG_FRENCH 0x0c
676 #define LANG_FRISIAN 0x62
677 #define LANG_GALICIAN 0x56
678 #define LANG_GEORGIAN 0x37
679 #define LANG_GERMAN 0x07
680 #define LANG_GREEK 0x08
681 #define LANG_GREENLANDIC 0x6f
682 #define LANG_GUJARATI 0x47
683 #define LANG_HAUSA 0x68
684 #define LANG_HEBREW 0x0d
685 #define LANG_HINDI 0x39
686 #define LANG_HUNGARIAN 0x0e
687 #define LANG_ICELANDIC 0x0f
688 #define LANG_IGBO 0x70
689 #define LANG_INDONESIAN 0x21
690 #define LANG_INUKTITUT 0x5d
691 #define LANG_IRISH 0x3c
692 #define LANG_ITALIAN 0x10
693 #define LANG_JAPANESE 0x11
694 #define LANG_KANNADA 0x4b
695 #define LANG_KASHMIRI 0x60
696 #define LANG_KAZAK 0x3f
697 #define LANG_KHMER 0x53
698 #define LANG_KICHE 0x86
699 #define LANG_KINYARWANDA 0x87
700 #define LANG_KONKANI 0x57
701 #define LANG_KOREAN 0x12
702 #define LANG_KYRGYZ 0x40
703 #define LANG_LAO 0x54
704 #define LANG_LATVIAN 0x26
705 #define LANG_LITHUANIAN 0x27
706 #define LANG_LOWER_SORBIAN 0x2e
707 #define LANG_LUXEMBOURGISH 0x6e
708 #define LANG_MACEDONIAN 0x2f
709 #define LANG_MALAY 0x3e
710 #define LANG_MALAYALAM 0x4c
711 #define LANG_MALTESE 0x3a
712 #define LANG_MANIPURI 0x58
713 #define LANG_MAORI 0x81
714 #define LANG_MAPUDUNGUN 0x7a
715 #define LANG_MARATHI 0x4e
716 #define LANG_MOHAWK 0x7c
717 #define LANG_MONGOLIAN 0x50
718 #define LANG_NEPALI 0x61
719 #define LANG_NORWEGIAN 0x14
720 #define LANG_OCCITAN 0x82
721 #define LANG_ORIYA 0x48
722 #define LANG_PASHTO 0x63
723 #define LANG_PERSIAN 0x29
724 #define LANG_POLISH 0x15
725 #define LANG_PORTUGUESE 0x16
726 #define LANG_PUNJABI 0x46
727 #define LANG_QUECHUA 0x6b
728 #define LANG_ROMANIAN 0x18
729 #define LANG_ROMANSH 0x17
730 #define LANG_RUSSIAN 0x19
731 #define LANG_SAMI 0x3b
732 #define LANG_SANSKRIT 0x4f
733 #define LANG_SERBIAN 0x1a
734 #define LANG_SERBIAN_NEUTRAL 0x7c1a
735 #define LANG_SINDHI 0x59
736 #define LANG_SINHALESE 0x5b
737 #define LANG_SLOVAK 0x1b
738 #define LANG_SLOVENIAN 0x24
739 #define LANG_SOTHO 0x6c
740 #define LANG_SPANISH 0x0a
741 #define LANG_SWAHILI 0x41
742 #define LANG_SWEDISH 0x1d
743 #define LANG_SYRIAC 0x5a
744 #define LANG_TAJIK 0x28
745 #define LANG_TAMAZIGHT 0x5f
746 #define LANG_TAMIL 0x49
747 #define LANG_TATAR 0x44
748 #define LANG_TELUGU 0x4a
749 #define LANG_THAI 0x1e
750 #define LANG_TIBETAN 0x51
751 #define LANG_TIGRIGNA 0x73
752 #define LANG_TSWANA 0x32
753 #define LANG_TURKISH 0x1f
754 #define LANG_TURKMEN 0x42
755 #define LANG_UIGHUR 0x80
756 #define LANG_UKRAINIAN 0x22
757 #define LANG_UPPER_SORBIAN 0x2e
758 #define LANG_URDU 0x20
759 #define LANG_UZBEK 0x43
760 #define LANG_VIETNAMESE 0x2a
761 #define LANG_WELSH 0x52
762 #define LANG_WOLOF 0x88
763 #define LANG_XHOSA 0x34
764 #define LANG_YAKUT 0x85
766 #define LANG_YORUBA 0x6a
767 #define LANG_ZULU 0x35