Sync to trunk r38250
[reactos.git] / reactos / include / ddk / ntdef.h
1 #ifndef _NTDEF_H
2 #define _NTDEF_H
3
4 //
5 // Dependencies
6 //
7 #include <ctype.h>
8 #include <basetsd.h>
9 #include <excpt.h>
10 #include <sdkddkver.h>
11
12 // FIXME: Should we include these here?
13 #include <stdarg.h>
14 #include <string.h>
15
16
17 typedef unsigned long POINTER_64; // FIXME! HACK!!!
18
19
20
21 //
22 // Pseudo Modifiers for Input Parameters
23 //
24 #ifndef IN
25 #define IN
26 #endif
27
28 #ifndef OUT
29 #define OUT
30 #endif
31
32 #ifndef OPTIONAL
33 #define OPTIONAL
34 #endif
35
36 #ifndef NOTHING
37 #define NOTHING
38 #endif
39
40 #ifndef CRITICAL
41 #define CRITICAL
42 #endif
43
44 #ifndef FAR
45 #define FAR
46 #endif
47
48
49 //
50 // Defines the "size" of an any-size array
51 //
52 #ifndef ANYSIZE_ARRAY
53 #define ANYSIZE_ARRAY 1
54 #endif
55
56 //
57 // Constant modifier
58 //
59 #ifndef CONST
60 #define CONST const
61 #endif
62
63 //
64 // TRUE/FALSE
65 //
66 #define FALSE 0
67 #define TRUE 1
68
69 //
70 // NULL/NULL64
71 //
72 #ifndef NULL
73 #ifdef __cplusplus
74 #define NULL 0
75 #define NULL64 0
76 #else
77 #define NULL ((void *)0)
78 #define NULL64 ((void * POINTER_64)0)
79 #endif
80 #endif // NULL
81
82
83 //
84 // FIXME
85 // We should use the -fms-extensions compiler flag for gcc,
86 // and clean up the mess.
87 //
88 #ifdef __GNUC__
89 #ifndef NONAMELESSUNION
90 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
91 #define _ANONYMOUS_UNION __extension__
92 #define _ANONYMOUS_STRUCT __extension__
93 #else
94 #if defined(__cplusplus)
95 #define _ANONYMOUS_UNION __extension__
96 #endif /* __cplusplus */
97 #endif /* __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) */
98 #endif /* NONAMELESSUNION */
99 #elif defined(__WATCOMC__) || defined(_MSC_VER)
100 #define _ANONYMOUS_UNION
101 #define _ANONYMOUS_STRUCT
102 #endif /* __GNUC__/__WATCOMC__ */
103
104 #ifndef _ANONYMOUS_UNION
105 #define _ANONYMOUS_UNION
106 #define _UNION_NAME(x) x
107 #define DUMMYUNIONNAME u
108 #define DUMMYUNIONNAME2 u2
109 #define DUMMYUNIONNAME3 u3
110 #define DUMMYUNIONNAME4 u4
111 #define DUMMYUNIONNAME5 u5
112 #define DUMMYUNIONNAME6 u6
113 #define DUMMYUNIONNAME7 u7
114 #define DUMMYUNIONNAME8 u8
115 #else
116 #define _UNION_NAME(x)
117 #define DUMMYUNIONNAME
118 #define DUMMYUNIONNAME2
119 #define DUMMYUNIONNAME3
120 #define DUMMYUNIONNAME4
121 #define DUMMYUNIONNAME5
122 #define DUMMYUNIONNAME6
123 #define DUMMYUNIONNAME7
124 #define DUMMYUNIONNAME8
125 #endif
126
127 #ifndef _ANONYMOUS_STRUCT
128 #define _ANONYMOUS_STRUCT
129 #define _STRUCT_NAME(x) x
130 #define DUMMYSTRUCTNAME s
131 #define DUMMYSTRUCTNAME2 s2
132 #define DUMMYSTRUCTNAME3 s3
133 #else
134 #define _STRUCT_NAME(x)
135 #define DUMMYSTRUCTNAME
136 #define DUMMYSTRUCTNAME2
137 #define DUMMYSTRUCTNAME3
138 #endif
139
140
141
142 // FIXME
143 #undef UNALIGNED
144 #define UNALIGNED
145 #define RESTRICTED_POINTER
146
147 //
148 // Returns the base address of a structure from a structure member
149 //
150 #ifndef CONTAINING_RECORD
151 #define CONTAINING_RECORD(address, type, field) \
152 ((type *)(((ULONG_PTR)address) - (ULONG_PTR)(&(((type *)0)->field))))
153 #endif
154
155 //
156 // Returns the byte offset of the specified structure's member
157 //
158 #ifndef FIELD_OFFSET
159 #define FIELD_OFFSET(Type, Field) \
160 ((LONG)(LONG_PTR) (&(((Type *) 0)->Field)))
161 #endif
162
163 //
164 // Returns the type's alignment
165 //
166 #define TYPE_ALIGNMENT(t) FIELD_OFFSET( struct { char x; t test; }, test )
167
168
169 //
170 // Calling Conventions
171 //
172 #if defined(_M_IX86)
173 #define FASTCALL __fastcall
174 #else
175 #define FASTCALL
176 #endif
177
178 #define NTAPI __stdcall
179
180 //
181 // Used by the DDK exclusively , don't put in drivers
182 //
183 #define DDKAPI __stdcall // Use NTAPI instead
184 #define DDKCDECLAPI __cdecl // Just use __cdecl
185
186 //
187 // Import and Export Specifiers
188 //
189
190 // Done the same way as in windef.h for now
191 #define DECLSPEC_IMPORT __declspec(dllimport)
192 #define DECLSPEC_EXPORT __declspec(dllexport)
193 #define DECLSPEC_NORETURN __declspec(noreturn)
194
195
196 #ifndef DECLSPEC_ADDRSAFE
197 #if (_MSC_VER >= 1200) && (defined(_M_ALPHA) || defined(_M_AXP64))
198 #define DECLSPEC_ADDRSAFE __declspec(address_safe)
199 #else
200 #define DECLSPEC_ADDRSAFE
201 #endif
202 #endif
203
204 #if !defined(_NTSYSTEM_)
205 #define NTSYSAPI DECLSPEC_IMPORT
206 #define NTSYSCALLAPI DECLSPEC_IMPORT
207 #else
208 #define NTSYSAPI
209 #if defined(_NTDLLBUILD_)
210 #define NTSYSCALLAPI
211 #else
212 #define NTSYSCALLAPI DECLSPEC_ADDRSAFE
213 #endif
214 #endif
215
216 //
217 // Inlines
218 //
219 #ifndef FORCEINLINE
220 #if (_MSC_VER >= 1200)
221 #define FORCEINLINE __forceinline
222 #elif (_MSC_VER)
223 #define FORCEINLINE __inline
224 #else
225 #define FORCEINLINE static __inline__ __attribute__((always_inline))
226 #endif
227 #endif
228
229 #if (_MSC_VER >= 1300)
230 #define DECLSPEC_NOINLINE __declspec(noinline)
231 #elif defined(__GNUC__)
232 #define DECLSPEC_NOINLINE __attribute__((noinline))
233 #else
234 #define DECLSPEC_NOINLINE
235 #endif
236
237 #if !defined(_M_CEE_PURE)
238 #define NTAPI_INLINE NTAPI
239 #else
240 #define NTAPI_INLINE
241 #endif
242
243 //
244 // Use to specify structure alignment
245 //
246 #ifndef DECLSPEC_ALIGN
247 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
248 #define DECLSPEC_ALIGN(x) __declspec(align(x))
249 #elif defined(__GNUC__)
250 #define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
251 #else
252 #define DECLSPEC_ALIGN(x)
253 #endif
254 #endif
255
256
257
258 //
259 // Use to silence unused variable warnings when it is intentional
260 //
261 #define UNREFERENCED_PARAMETER(P) {(P)=(P);}
262 #define UNREFERENCED_LOCAL_VARIABLE(L) {(L)=(L);}
263 #define DBG_UNREFERENCED_PARAMETER(P)
264 #define DBG_UNREFERENCED_LOCAL_VARIABLE(L)
265
266
267
268 //
269 // min/max helper macros
270 //
271 #ifndef NOMINMAX
272
273 #ifndef min
274 #define min(a,b) (((a) < (b)) ? (a) : (b))
275 #endif
276
277 #ifndef max
278 #define max(a,b) (((a) > (b)) ? (a) : (b))
279 #endif
280
281 #endif // NOMINMAX
282
283
284
285 //
286 // Tell windef.h that we have defined some basic types
287 //
288 #define BASETYPES
289
290 //
291 // Void Pointers
292 //
293 typedef void *PVOID;
294 //typedef void * POINTER_64 PVOID64;
295 typedef PVOID PVOID64; // FIXME!
296
297 //
298 // Handle Type
299 //
300 #ifdef STRICT
301 typedef void *HANDLE;
302 #define DECLARE_HANDLE(n) typedef struct n##__{int i;}*n
303 #else
304 typedef PVOID HANDLE;
305 #define DECLARE_HANDLE(n) typedef HANDLE n
306 #endif
307 typedef HANDLE *PHANDLE;
308
309 //
310 // Upper-Case Versions of Some Standard C Types
311 //
312 #ifndef VOID
313 #define VOID void
314 typedef char CHAR;
315 typedef short SHORT;
316 typedef long LONG;
317 #if !defined(MIDL_PASS)
318 typedef int INT;
319 #endif
320 #endif
321 typedef double DOUBLE;
322
323 //
324 // Used to store a non-float 8 byte aligned structure
325 //
326 typedef struct _QUAD
327 {
328 _ANONYMOUS_UNION union
329 {
330 __int64 UseThisFieldToCopy;
331 double DoNotUseThisField;
332 };
333 } QUAD, *PQUAD, UQUAD, *PUQUAD;
334
335
336 //
337 // Unsigned Types
338 //
339 typedef unsigned char UCHAR, *PUCHAR;
340 typedef unsigned short USHORT, *PUSHORT;
341 typedef unsigned long ULONG, *PULONG;
342 typedef CONST UCHAR *PCUCHAR;
343 typedef CONST USHORT *PCUSHORT;
344 typedef CONST ULONG *PCULONG;
345
346 typedef UCHAR FCHAR;
347 typedef USHORT FSHORT;
348 typedef ULONG FLONG;
349 typedef UCHAR BOOLEAN;
350 typedef BOOLEAN *PBOOLEAN;
351
352 //
353 // Signed Types
354 //
355 typedef SHORT *PSHORT;
356 typedef LONG *PLONG;
357
358 typedef LONG NTSTATUS;
359 typedef NTSTATUS *PNTSTATUS;
360
361 typedef signed char SCHAR;
362 typedef SCHAR *PSCHAR;
363
364 #ifndef _HRESULT_DEFINED
365 #define _HRESULT_DEFINED
366 typedef LONG HRESULT;
367 #endif
368
369 //
370 // 64-bit types
371 //
372 typedef __int64 LONGLONG, *PLONGLONG;
373 typedef unsigned __int64 ULONGLONG, *PULONGLONG;
374 typedef ULONGLONG DWORDLONG, *PDWORDLONG;
375
376 //
377 // Update Sequence Number
378 //
379 typedef LONGLONG USN;
380
381
382 //
383 // ANSI (Multi-byte Character) types
384 //
385 typedef CHAR *PCHAR, *LPCH, *PCH;
386 typedef CONST CHAR *LPCCH, *PCCH;
387 typedef CHAR *NPSTR, *LPSTR, *PSTR;
388 typedef PSTR *PZPSTR;
389 typedef CONST PSTR *PCZPSTR;
390 typedef CONST CHAR *LPCSTR, *PCSTR;
391 typedef PCSTR *PZPCSTR;
392
393 //
394 // Pointer to an Asciiz string
395 //
396 typedef CHAR *PSZ;
397 typedef CONST char *PCSZ;
398
399 //
400 // UNICODE (Wide Character) types
401 //
402 typedef wchar_t WCHAR;
403 typedef WCHAR *PWCHAR, *LPWCH, *PWCH;
404 typedef CONST WCHAR *LPCWCH, *PCWCH;
405 typedef WCHAR *NWPSTR, *LPWSTR, *PWSTR;
406 typedef PWSTR *PZPWSTR;
407 typedef CONST PWSTR *PCZPWSTR;
408 typedef WCHAR UNALIGNED *LPUWSTR, *PUWSTR;
409 typedef CONST WCHAR *LPCWSTR, *PCWSTR;
410 typedef PCWSTR *PZPCWSTR;
411 typedef CONST WCHAR UNALIGNED *LPCUWSTR, *PCUWSTR;
412
413 //
414 // Cardinal Data Types
415 //
416 typedef char CCHAR, *PCCHAR;
417 typedef short CSHORT, *PCSHORT;
418 typedef ULONG CLONG, *PCLONG;
419
420 //
421 // NLS basics (Locale and Language Ids)
422 //
423 typedef ULONG LCID;
424 typedef PULONG PLCID;
425 typedef USHORT LANGID;
426
427
428
429 //
430 // Large Integer Unions
431 //
432 #if defined(MIDL_PASS)
433 typedef struct _LARGE_INTEGER {
434 #else
435 typedef union _LARGE_INTEGER {
436 _ANONYMOUS_STRUCT struct
437 {
438 ULONG LowPart;
439 LONG HighPart;
440 } DUMMYSTRUCTNAME;
441 struct
442 {
443 ULONG LowPart;
444 LONG HighPart;
445 } u;
446 #endif //MIDL_PASS
447 LONGLONG QuadPart;
448 } LARGE_INTEGER, *PLARGE_INTEGER;
449
450 #if defined(MIDL_PASS)
451 typedef struct _ULARGE_INTEGER {
452 #else
453 typedef union _ULARGE_INTEGER {
454 _ANONYMOUS_STRUCT struct
455 {
456 ULONG LowPart;
457 ULONG HighPart;
458 } DUMMYSTRUCTNAME;
459 struct
460 {
461 ULONG LowPart;
462 ULONG HighPart;
463 } u;
464 #endif //MIDL_PASS
465 ULONGLONG QuadPart;
466 } ULARGE_INTEGER, *PULARGE_INTEGER;
467
468 //
469 // Physical Addresses are always treated as 64-bit wide
470 //
471 typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS;
472
473
474
475 //
476 // Locally Unique Identifier
477 //
478 typedef struct _LUID {
479 ULONG LowPart;
480 LONG HighPart;
481 } LUID, *PLUID;
482
483
484
485 //
486 // Native API Return Value Macros
487 //
488 #define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
489 #define NT_INFORMATION(Status) ((((ULONG)(Status)) >> 30) == 1)
490 #define NT_WARNING(Status) ((((ULONG)(Status)) >> 30) == 2)
491 #define NT_ERROR(Status) ((((ULONG)(Status)) >> 30) == 3)
492
493
494
495 //
496 // String Types
497 //
498 typedef struct _UNICODE_STRING {
499 USHORT Length;
500 USHORT MaximumLength;
501 PWSTR Buffer;
502 } UNICODE_STRING, *PUNICODE_STRING;
503 typedef const UNICODE_STRING* PCUNICODE_STRING;
504 #define UNICODE_NULL ((WCHAR)0)
505
506 typedef struct _CSTRING {
507 USHORT Length;
508 USHORT MaximumLength;
509 CONST CHAR *Buffer;
510 } CSTRING, *PCSTRING;
511 #define ANSI_NULL ((CHAR)0)
512
513 typedef struct _STRING {
514 USHORT Length;
515 USHORT MaximumLength;
516 PCHAR Buffer;
517 } STRING, *PSTRING;
518
519 typedef STRING ANSI_STRING;
520 typedef PSTRING PANSI_STRING;
521 typedef STRING OEM_STRING;
522 typedef PSTRING POEM_STRING;
523 typedef CONST STRING* PCOEM_STRING;
524 typedef STRING CANSI_STRING;
525 typedef PSTRING PCANSI_STRING;
526
527
528
529 //
530 // LangID and NLS
531 //
532 #define MAKELANGID(p, s) ((((USHORT)(s)) << 10) | (USHORT)(p))
533 #define PRIMARYLANGID(lgid) ((USHORT)(lgid) & 0x3ff)
534 #define SUBLANGID(lgid) ((USHORT)(lgid) >> 10)
535
536 #define NLS_VALID_LOCALE_MASK 0x000fffff
537
538 #define MAKELCID(lgid, srtid) ((ULONG)((((ULONG)((USHORT)(srtid))) << 16) | \
539 ((ULONG)((USHORT)(lgid)))))
540 #define MAKESORTLCID(lgid, srtid, ver) \
541 ((ULONG)((MAKELCID(lgid, srtid)) | \
542 (((ULONG)((USHORT)(ver))) << 20)))
543 #define LANGIDFROMLCID(lcid) ((USHORT)(lcid))
544 #define SORTIDFROMLCID(lcid) ((USHORT)((((ULONG)(lcid)) >> 16) & 0xf))
545 #define SORTVERSIONFROMLCID(lcid) ((USHORT)((((ULONG)(lcid)) >> 20) & 0xf))
546
547
548
549 //
550 // Object Attributes
551 //
552 typedef struct _OBJECT_ATTRIBUTES {
553 ULONG Length;
554 HANDLE RootDirectory;
555 PUNICODE_STRING ObjectName;
556 ULONG Attributes;
557 PVOID SecurityDescriptor;
558 PVOID SecurityQualityOfService;
559 } OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES;
560 typedef CONST OBJECT_ATTRIBUTES *PCOBJECT_ATTRIBUTES;
561
562 //
563 // Values for the Attributes member
564 //
565 #define OBJ_INHERIT 0x00000002
566 #define OBJ_PERMANENT 0x00000010
567 #define OBJ_EXCLUSIVE 0x00000020
568 #define OBJ_CASE_INSENSITIVE 0x00000040
569 #define OBJ_OPENIF 0x00000080
570 #define OBJ_OPENLINK 0x00000100
571 #define OBJ_KERNEL_HANDLE 0x00000200
572 #define OBJ_FORCE_ACCESS_CHECK 0x00000400
573 #define OBJ_VALID_ATTRIBUTES 0x000007F2
574
575 //
576 // Helper Macro
577 //
578 #define InitializeObjectAttributes(p,n,a,r,s) { \
579 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
580 (p)->RootDirectory = (r); \
581 (p)->Attributes = (a); \
582 (p)->ObjectName = (n); \
583 (p)->SecurityDescriptor = (s); \
584 (p)->SecurityQualityOfService = NULL; \
585 }
586
587
588
589 //
590 // Product Types
591 //
592 typedef enum _NT_PRODUCT_TYPE {
593 NtProductWinNt = 1,
594 NtProductLanManNt,
595 NtProductServer
596 } NT_PRODUCT_TYPE, *PNT_PRODUCT_TYPE;
597
598
599
600 //
601 // Doubly Linked Lists
602 //
603 typedef struct _LIST_ENTRY {
604 struct _LIST_ENTRY *Flink;
605 struct _LIST_ENTRY *Blink;
606 } LIST_ENTRY, *PLIST_ENTRY, *RESTRICTED_POINTER PRLIST_ENTRY;
607
608 typedef struct LIST_ENTRY32
609 {
610 ULONG Flink;
611 ULONG Blink;
612 } LIST_ENTRY32, *PLIST_ENTRY32;
613
614 typedef struct LIST_ENTRY64
615 {
616 ULONGLONG Flink;
617 ULONGLONG Blink;
618 } LIST_ENTRY64, *PLIST_ENTRY64;
619
620 //
621 // Singly Linked Lists
622 //
623 typedef struct _SINGLE_LIST_ENTRY {
624 struct _SINGLE_LIST_ENTRY *Next;
625 } SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY;
626
627
628
629 //
630 // Helper Macros
631 //
632 #define RTL_CONSTANT_STRING(s) { sizeof(s)-sizeof((s)[0]), sizeof(s), s }
633
634 #define RTL_FIELD_SIZE(type, field) (sizeof(((type *)0)->field))
635
636 #define RTL_NUMBER_OF_V1(A) (sizeof(A)/sizeof((A)[0]))
637 #define RTL_NUMBER_OF_V2(A) RTL_NUMBER_OF_V1(A)
638 #ifdef ENABLE_RTL_NUMBER_OF_V2
639 #define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V2(A)
640 #else
641 #define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V1(A)
642 #endif
643 #define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
644
645
646
647 //
648 // Type Limits
649 //
650 #define MINCHAR 0x80
651 #define MAXCHAR 0x7f
652 #define MINSHORT 0x8000
653 #define MAXSHORT 0x7fff
654 #define MINLONG 0x80000000
655 #define MAXLONG 0x7fffffff
656 #define MAXUCHAR 0xff
657 #define MAXUSHORT 0xffff
658 #define MAXULONG 0xffffffff
659 #define MAXLONGLONG (0x7fffffffffffffffLL)
660
661
662
663 //
664 // Multiplication and Shift Operations
665 //
666 #define Int32x32To64(a,b) ((LONGLONG)(a)*(LONGLONG)(b))
667 #define UInt32x32To64(a,b) ((DWORDLONG)(a)*(DWORDLONG)(b))
668 #define Int64ShllMod32(a,b) ((DWORDLONG)(a)<<(b))
669 #define Int64ShraMod32(a,b) ((LONGLONG)(a)>>(b))
670 #define Int64ShrlMod32(a,b) ((DWORDLONG)(a)>>(b))
671
672
673
674 //
675 // C_ASSERT Definition
676 //
677 #define __C_ASSERT_JOIN(X, Y) __C_ASSERT_DO_JOIN(X, Y)
678 #define __C_ASSERT_DO_JOIN(X, Y) __C_ASSERT_DO_JOIN2(X, Y)
679 #define __C_ASSERT_DO_JOIN2(X, Y) X##Y
680 #define C_ASSERT(e) typedef char __C_ASSERT_JOIN(__C_ASSERT__, __LINE__)[(e) ? 1 : -1]
681
682
683
684 //
685 // Primary language IDs.
686 //
687 #define LANG_NEUTRAL 0x00
688 #define LANG_INVARIANT 0x7f
689
690 #define LANG_AFRIKAANS 0x36
691 #define LANG_ALBANIAN 0x1c
692 #define LANG_ALSATIAN 0x84
693 #define LANG_AMHARIC 0x5e
694 #define LANG_ARABIC 0x01
695 #define LANG_ARMENIAN 0x2b
696 #define LANG_ASSAMESE 0x4d
697 #define LANG_AZERI 0x2c
698 #define LANG_BASHKIR 0x6d
699 #define LANG_BASQUE 0x2d
700 #define LANG_BELARUSIAN 0x23
701 #define LANG_BENGALI 0x45
702 #define LANG_BRETON 0x7e
703 #define LANG_BOSNIAN 0x1a
704 #define LANG_BOSNIAN_NEUTRAL 0x781a
705 #define LANG_BULGARIAN 0x02
706 #define LANG_CATALAN 0x03
707 #define LANG_CHINESE 0x04
708 #define LANG_CHINESE_SIMPLIFIED 0x04
709 #define LANG_CHINESE_TRADITIONAL 0x7c04
710 #define LANG_CORSICAN 0x83
711 #define LANG_CROATIAN 0x1a
712 #define LANG_CZECH 0x05
713 #define LANG_DANISH 0x06
714 #define LANG_DARI 0x8c
715 #define LANG_DIVEHI 0x65
716 #define LANG_DUTCH 0x13
717 #define LANG_ENGLISH 0x09
718 #define LANG_ESTONIAN 0x25
719 #define LANG_FAEROESE 0x38
720 #define LANG_FARSI 0x29
721 #define LANG_FILIPINO 0x64
722 #define LANG_FINNISH 0x0b
723 #define LANG_FRENCH 0x0c
724 #define LANG_FRISIAN 0x62
725 #define LANG_GALICIAN 0x56
726 #define LANG_GEORGIAN 0x37
727 #define LANG_GERMAN 0x07
728 #define LANG_GREEK 0x08
729 #define LANG_GREENLANDIC 0x6f
730 #define LANG_GUJARATI 0x47
731 #define LANG_HAUSA 0x68
732 #define LANG_HEBREW 0x0d
733 #define LANG_HINDI 0x39
734 #define LANG_HUNGARIAN 0x0e
735 #define LANG_ICELANDIC 0x0f
736 #define LANG_IGBO 0x70
737 #define LANG_INDONESIAN 0x21
738 #define LANG_INUKTITUT 0x5d
739 #define LANG_IRISH 0x3c
740 #define LANG_ITALIAN 0x10
741 #define LANG_JAPANESE 0x11
742 #define LANG_KANNADA 0x4b
743 #define LANG_KASHMIRI 0x60
744 #define LANG_KAZAK 0x3f
745 #define LANG_KHMER 0x53
746 #define LANG_KICHE 0x86
747 #define LANG_KINYARWANDA 0x87
748 #define LANG_KONKANI 0x57
749 #define LANG_KOREAN 0x12
750 #define LANG_KYRGYZ 0x40
751 #define LANG_LAO 0x54
752 #define LANG_LATVIAN 0x26
753 #define LANG_LITHUANIAN 0x27
754 #define LANG_LOWER_SORBIAN 0x2e
755 #define LANG_LUXEMBOURGISH 0x6e
756 #define LANG_MACEDONIAN 0x2f
757 #define LANG_MALAY 0x3e
758 #define LANG_MALAYALAM 0x4c
759 #define LANG_MALTESE 0x3a
760 #define LANG_MANIPURI 0x58
761 #define LANG_MAORI 0x81
762 #define LANG_MAPUDUNGUN 0x7a
763 #define LANG_MARATHI 0x4e
764 #define LANG_MOHAWK 0x7c
765 #define LANG_MONGOLIAN 0x50
766 #define LANG_NEPALI 0x61
767 #define LANG_NORWEGIAN 0x14
768 #define LANG_OCCITAN 0x82
769 #define LANG_ORIYA 0x48
770 #define LANG_PASHTO 0x63
771 #define LANG_PERSIAN 0x29
772 #define LANG_POLISH 0x15
773 #define LANG_PORTUGUESE 0x16
774 #define LANG_PUNJABI 0x46
775 #define LANG_QUECHUA 0x6b
776 #define LANG_ROMANIAN 0x18
777 #define LANG_ROMANSH 0x17
778 #define LANG_RUSSIAN 0x19
779 #define LANG_SAMI 0x3b
780 #define LANG_SANSKRIT 0x4f
781 #define LANG_SERBIAN 0x1a
782 #define LANG_SERBIAN_NEUTRAL 0x7c1a
783 #define LANG_SINDHI 0x59
784 #define LANG_SINHALESE 0x5b
785 #define LANG_SLOVAK 0x1b
786 #define LANG_SLOVENIAN 0x24
787 #define LANG_SOTHO 0x6c
788 #define LANG_SPANISH 0x0a
789 #define LANG_SWAHILI 0x41
790 #define LANG_SWEDISH 0x1d
791 #define LANG_SYRIAC 0x5a
792 #define LANG_TAJIK 0x28
793 #define LANG_TAMAZIGHT 0x5f
794 #define LANG_TAMIL 0x49
795 #define LANG_TATAR 0x44
796 #define LANG_TELUGU 0x4a
797 #define LANG_THAI 0x1e
798 #define LANG_TIBETAN 0x51
799 #define LANG_TIGRIGNA 0x73
800 #define LANG_TSWANA 0x32
801 #define LANG_TURKISH 0x1f
802 #define LANG_TURKMEN 0x42
803 #define LANG_UIGHUR 0x80
804 #define LANG_UKRAINIAN 0x22
805 #define LANG_UPPER_SORBIAN 0x2e
806 #define LANG_URDU 0x20
807 #define LANG_UZBEK 0x43
808 #define LANG_VIETNAMESE 0x2a
809 #define LANG_WELSH 0x52
810 #define LANG_WOLOF 0x88
811 #define LANG_XHOSA 0x34
812 #define LANG_YAKUT 0x85
813 #define LANG_YI 0x78
814 #define LANG_YORUBA 0x6a
815 #define LANG_ZULU 0x35
816
817
818
819 #endif /* _NTDEF_H */