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 */
156 #if defined(_M_MRX000) || defined(_M_ALPHA) || defined(_M_PPC) || defined(_M_IA64) || defined(_M_AMD64)
157 #define ALIGNMENT_MACHINE
158 #define UNALIGNED __unaligned
160 #define UNALIGNED64 __unaligned
165 #undef ALIGNMENT_MACHINE
170 #if defined(_M_MRX000) && !(defined(MIDL_PASS) || defined(RC_INVOKED)) && defined(ENABLE_RESTRICTED)
171 #define RESTRICTED_POINTER __restrict
173 #define RESTRICTED_POINTER
177 #define ARGUMENT_PRESENT(ArgumentPointer) \
178 ((CHAR*)((ULONG_PTR)(ArgumentPointer)) != (CHAR*)NULL)
180 /* Returns the base address of a structure from a structure member */
181 #ifndef CONTAINING_RECORD
182 #define CONTAINING_RECORD(address, type, field) \
183 ((type *)(((ULONG_PTR)address) - (ULONG_PTR)(&(((type *)0)->field))))
186 /* Returns the byte offset of the specified structure's member */
188 #define FIELD_OFFSET(Type, Field) ((LONG)(LONG_PTR)&(((Type*) 0)->Field))
190 #define FIELD_OFFSET(Type, Field) __builtin_offsetof(Type, Field)
193 /* Returns the type's alignment */
194 #if defined(_MSC_VER) && (_MSC_VER >= 1300)
195 #define TYPE_ALIGNMENT(t) __alignof(t)
197 #define TYPE_ALIGNMENT(t) FIELD_OFFSET( struct { char x; t test; }, test )
200 /* Calling Conventions */
202 #define FASTCALL __fastcall
207 #define NTAPI __stdcall
210 /* Import and Export Specifiers */
212 /* Done the same way as in windef.h for now */
213 #define DECLSPEC_IMPORT __declspec(dllimport)
214 #define DECLSPEC_NORETURN __declspec(noreturn)
216 #ifndef DECLSPEC_ADDRSAFE
217 #if (_MSC_VER >= 1200) && (defined(_M_ALPHA) || defined(_M_AXP64))
218 #define DECLSPEC_ADDRSAFE __declspec(address_safe)
220 #define DECLSPEC_ADDRSAFE
224 #if !defined(_NTSYSTEM_)
225 #define NTSYSAPI DECLSPEC_IMPORT
226 #define NTSYSCALLAPI DECLSPEC_IMPORT
229 #if defined(_NTDLLBUILD_)
232 #define NTSYSCALLAPI DECLSPEC_ADDRSAFE
238 #if (_MSC_VER >= 1200)
239 #define FORCEINLINE __forceinline
241 #define FORCEINLINE __inline
243 #define FORCEINLINE static __inline__ __attribute__((always_inline))
247 #ifndef DECLSPEC_NOINLINE
248 #if (_MSC_VER >= 1300)
249 #define DECLSPEC_NOINLINE __declspec(noinline)
250 #elif defined(__GNUC__)
251 #define DECLSPEC_NOINLINE __attribute__((noinline))
253 #define DECLSPEC_NOINLINE
257 #if !defined(_M_CEE_PURE)
258 #define NTAPI_INLINE NTAPI
263 /* Use to specify structure alignment */
264 #ifndef DECLSPEC_ALIGN
265 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
266 #define DECLSPEC_ALIGN(x) __declspec(align(x))
267 #elif defined(__GNUC__)
268 #define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
270 #define DECLSPEC_ALIGN(x)
274 /* Use to silence unused variable warnings when it is intentional */
275 #define UNREFERENCED_PARAMETER(P) {(P)=(P);}
276 #define UNREFERENCED_LOCAL_VARIABLE(L) {(L)=(L);}
277 #define DBG_UNREFERENCED_PARAMETER(P)
278 #define DBG_UNREFERENCED_LOCAL_VARIABLE(L)
280 /* min/max helper macros */
284 #define min(a,b) (((a) < (b)) ? (a) : (b))
288 #define max(a,b) (((a) > (b)) ? (a) : (b))
291 #endif /* NOMINMAX */
293 /* Tell windef.h that we have defined some basic types */
298 //typedef void * POINTER_64 PVOID64;
299 typedef PVOID PVOID64
; // FIXME!
303 typedef void *HANDLE
;
304 #define DECLARE_HANDLE(n) typedef struct n##__{int i;}*n
306 typedef PVOID HANDLE
;
307 #define DECLARE_HANDLE(n) typedef HANDLE n
309 typedef HANDLE
*PHANDLE
;
311 /* Upper-Case Versions of Some Standard C Types */
317 #if !defined(MIDL_PASS)
321 typedef double DOUBLE
;
324 typedef unsigned char UCHAR
, *PUCHAR
;
325 typedef unsigned short USHORT
, *PUSHORT
;
326 typedef unsigned long ULONG
, *PULONG
;
327 typedef CONST UCHAR
*PCUCHAR
;
328 typedef CONST USHORT
*PCUSHORT
;
329 typedef CONST ULONG
*PCULONG
;
331 typedef USHORT FSHORT
;
333 typedef UCHAR BOOLEAN
, *PBOOLEAN
;
334 typedef ULONG LOGICAL
;
335 typedef ULONG
*PLOGICAL
;
338 typedef SHORT
*PSHORT
;
340 typedef LONG NTSTATUS
;
341 typedef NTSTATUS
*PNTSTATUS
;
342 typedef signed char SCHAR
;
343 typedef SCHAR
*PSCHAR
;
345 #ifndef _HRESULT_DEFINED
346 #define _HRESULT_DEFINED
347 typedef LONG HRESULT
;
351 __GNU_EXTENSION
typedef __int64 LONGLONG
, *PLONGLONG
;
352 __GNU_EXTENSION
typedef unsigned __int64 ULONGLONG
, *PULONGLONG
;
353 typedef ULONGLONG DWORDLONG
, *PDWORDLONG
;
355 /* Update Sequence Number */
356 typedef LONGLONG USN
;
358 /* ANSI (Multi-byte Character) types */
359 typedef CHAR
*PCHAR
, *LPCH
, *PCH
;
360 typedef CONST CHAR
*LPCCH
, *PCCH
;
361 typedef CHAR
*NPSTR
, *LPSTR
, *PSTR
;
362 typedef PSTR
*PZPSTR
;
363 typedef CONST PSTR
*PCZPSTR
;
364 typedef CONST CHAR
*LPCSTR
, *PCSTR
;
365 typedef PCSTR
*PZPCSTR
;
367 /* Pointer to an Asciiz string */
369 typedef CONST
char *PCSZ
;
371 /* UNICODE (Wide Character) types */
372 typedef wchar_t WCHAR
;
373 typedef WCHAR
*PWCHAR
, *LPWCH
, *PWCH
;
374 typedef CONST WCHAR
*LPCWCH
, *PCWCH
;
375 typedef WCHAR
*NWPSTR
, *LPWSTR
, *PWSTR
;
376 typedef PWSTR
*PZPWSTR
;
377 typedef CONST PWSTR
*PCZPWSTR
;
378 typedef WCHAR UNALIGNED
*LPUWSTR
, *PUWSTR
;
379 typedef CONST WCHAR
*LPCWSTR
, *PCWSTR
;
380 typedef PCWSTR
*PZPCWSTR
;
381 typedef CONST WCHAR UNALIGNED
*LPCUWSTR
, *PCUWSTR
;
383 /* Cardinal Data Types */
384 typedef char CCHAR
, *PCCHAR
;
385 typedef short CSHORT
, *PCSHORT
;
386 typedef ULONG CLONG
, *PCLONG
;
388 /* NLS basics (Locale and Language Ids) */
390 typedef PULONG PLCID
;
391 typedef USHORT LANGID
;
393 /* Used to store a non-float 8 byte aligned structure */
396 _ANONYMOUS_UNION
union
398 __GNU_EXTENSION __int64 UseThisFieldToCopy
;
399 double DoNotUseThisField
;
401 } QUAD
, *PQUAD
, UQUAD
, *PUQUAD
;
403 /* Large Integer Unions */
404 #if defined(MIDL_PASS)
405 typedef struct _LARGE_INTEGER
{
407 typedef union _LARGE_INTEGER
{
408 _ANONYMOUS_STRUCT
struct
418 #endif /* MIDL_PASS */
420 } LARGE_INTEGER
, *PLARGE_INTEGER
;
422 #if defined(MIDL_PASS)
423 typedef struct _ULARGE_INTEGER
{
425 typedef union _ULARGE_INTEGER
{
426 _ANONYMOUS_STRUCT
struct
436 #endif /* MIDL_PASS */
438 } ULARGE_INTEGER
, *PULARGE_INTEGER
;
440 /* Physical Addresses are always treated as 64-bit wide */
441 typedef LARGE_INTEGER PHYSICAL_ADDRESS
, *PPHYSICAL_ADDRESS
;
443 /* Locally Unique Identifier */
444 typedef struct _LUID
{
449 /* Native API Return Value Macros */
450 #define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
451 #define NT_INFORMATION(Status) ((((ULONG)(Status)) >> 30) == 1)
452 #define NT_WARNING(Status) ((((ULONG)(Status)) >> 30) == 2)
453 #define NT_ERROR(Status) ((((ULONG)(Status)) >> 30) == 3)
456 typedef struct _UNICODE_STRING
{
458 USHORT MaximumLength
;
460 } UNICODE_STRING
, *PUNICODE_STRING
;
461 typedef const UNICODE_STRING
* PCUNICODE_STRING
;
462 #define UNICODE_NULL ((WCHAR)0)
464 typedef struct _CSTRING
{
466 USHORT MaximumLength
;
468 } CSTRING
, *PCSTRING
;
469 #define ANSI_NULL ((CHAR)0)
471 typedef struct _STRING
{
473 USHORT MaximumLength
;
477 typedef STRING ANSI_STRING
;
478 typedef PSTRING PANSI_STRING
;
479 typedef STRING OEM_STRING
;
480 typedef PSTRING POEM_STRING
;
481 typedef CONST STRING
* PCOEM_STRING
;
482 typedef STRING CANSI_STRING
;
483 typedef PSTRING PCANSI_STRING
;
485 typedef struct _STRING32
{
487 USHORT MaximumLength
;
489 } STRING32
, *PSTRING32
,
490 UNICODE_STRING32
, *PUNICODE_STRING32
,
491 ANSI_STRING32
, *PANSI_STRING32
;
493 typedef struct _STRING64
{
495 USHORT MaximumLength
;
497 } STRING64
, *PSTRING64
,
498 UNICODE_STRING64
, *PUNICODE_STRING64
,
499 ANSI_STRING64
, *PANSI_STRING64
;
502 #define MAKELANGID(p, s) ((((USHORT)(s)) << 10) | (USHORT)(p))
503 #define PRIMARYLANGID(lgid) ((USHORT)(lgid) & 0x3ff)
504 #define SUBLANGID(lgid) ((USHORT)(lgid) >> 10)
506 #define NLS_VALID_LOCALE_MASK 0x000fffff
508 #define MAKELCID(lgid, srtid) ((ULONG)((((ULONG)((USHORT)(srtid))) << 16) | \
509 ((ULONG)((USHORT)(lgid)))))
510 #define MAKESORTLCID(lgid, srtid, ver) \
511 ((ULONG)((MAKELCID(lgid, srtid)) | \
512 (((ULONG)((USHORT)(ver))) << 20)))
513 #define LANGIDFROMLCID(lcid) ((USHORT)(lcid))
514 #define SORTIDFROMLCID(lcid) ((USHORT)((((ULONG)(lcid)) >> 16) & 0xf))
515 #define SORTVERSIONFROMLCID(lcid) ((USHORT)((((ULONG)(lcid)) >> 20) & 0xf))
518 /* Object Attributes */
519 typedef struct _OBJECT_ATTRIBUTES
{
521 HANDLE RootDirectory
;
522 PUNICODE_STRING ObjectName
;
524 PVOID SecurityDescriptor
;
525 PVOID SecurityQualityOfService
;
526 } OBJECT_ATTRIBUTES
, *POBJECT_ATTRIBUTES
;
527 typedef CONST OBJECT_ATTRIBUTES
*PCOBJECT_ATTRIBUTES
;
529 /* Values for the Attributes member */
530 #define OBJ_INHERIT 0x00000002
531 #define OBJ_PERMANENT 0x00000010
532 #define OBJ_EXCLUSIVE 0x00000020
533 #define OBJ_CASE_INSENSITIVE 0x00000040
534 #define OBJ_OPENIF 0x00000080
535 #define OBJ_OPENLINK 0x00000100
536 #define OBJ_KERNEL_HANDLE 0x00000200
537 #define OBJ_FORCE_ACCESS_CHECK 0x00000400
538 #define OBJ_VALID_ATTRIBUTES 0x000007F2
541 #define InitializeObjectAttributes(p,n,a,r,s) { \
542 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
543 (p)->RootDirectory = (r); \
544 (p)->Attributes = (a); \
545 (p)->ObjectName = (n); \
546 (p)->SecurityDescriptor = (s); \
547 (p)->SecurityQualityOfService = NULL; \
551 typedef enum _NT_PRODUCT_TYPE
{
555 } NT_PRODUCT_TYPE
, *PNT_PRODUCT_TYPE
;
557 typedef enum _EVENT_TYPE
{
562 typedef enum _TIMER_TYPE
{
567 typedef enum _WAIT_TYPE
{
572 /* Doubly Linked Lists */
573 typedef struct _LIST_ENTRY
{
574 struct _LIST_ENTRY
*Flink
;
575 struct _LIST_ENTRY
*Blink
;
576 } LIST_ENTRY
, *PLIST_ENTRY
, *RESTRICTED_POINTER PRLIST_ENTRY
;
578 typedef struct LIST_ENTRY32
582 } LIST_ENTRY32
, *PLIST_ENTRY32
;
584 typedef struct LIST_ENTRY64
588 } LIST_ENTRY64
, *PLIST_ENTRY64
;
590 /* Singly Linked Lists */
591 typedef struct _SINGLE_LIST_ENTRY
{
592 struct _SINGLE_LIST_ENTRY
*Next
;
593 } SINGLE_LIST_ENTRY
, *PSINGLE_LIST_ENTRY
;
595 typedef struct _PROCESSOR_NUMBER
{
599 } PROCESSOR_NUMBER
, *PPROCESSOR_NUMBER
;
602 struct _EXCEPTION_RECORD
;
604 typedef EXCEPTION_DISPOSITION
605 (NTAPI
*PEXCEPTION_ROUTINE
)(
606 IN
struct _EXCEPTION_RECORD
*ExceptionRecord
,
607 IN PVOID EstablisherFrame
,
608 IN OUT
struct _CONTEXT
*ContextRecord
,
609 IN OUT PVOID DispatcherContext
);
611 typedef struct _GROUP_AFFINITY
{
615 } GROUP_AFFINITY
, *PGROUP_AFFINITY
;
618 #define RTL_CONSTANT_STRING(s) { sizeof(s)-sizeof((s)[0]), sizeof(s), s }
620 #define RTL_FIELD_SIZE(type, field) (sizeof(((type *)0)->field))
622 #define RTL_NUMBER_OF_V1(A) (sizeof(A)/sizeof((A)[0]))
623 #define RTL_NUMBER_OF_V2(A) RTL_NUMBER_OF_V1(A)
624 #ifdef ENABLE_RTL_NUMBER_OF_V2
625 #define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V2(A)
627 #define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V1(A)
629 #define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
634 #define MINSHORT 0x8000
635 #define MAXSHORT 0x7fff
636 #define MINLONG 0x80000000
637 #define MAXLONG 0x7fffffff
638 #define MAXUCHAR 0xff
639 #define MAXUSHORT 0xffff
640 #define MAXULONG 0xffffffff
641 #define MAXLONGLONG (0x7fffffffffffffffLL)
643 /* Multiplication and Shift Operations */
644 #define Int32x32To64(a,b) ((LONGLONG)(a)*(LONGLONG)(b))
645 #define UInt32x32To64(a,b) ((DWORDLONG)(a)*(DWORDLONG)(b))
646 #define Int64ShllMod32(a,b) ((DWORDLONG)(a)<<(b))
647 #define Int64ShraMod32(a,b) ((LONGLONG)(a)>>(b))
648 #define Int64ShrlMod32(a,b) ((DWORDLONG)(a)>>(b))
650 /* C_ASSERT Definition */
651 #define C_ASSERT(expr) extern char (*c_assert(void)) [(expr) ? 1 : -1]
653 /* Primary language IDs. */
654 #define LANG_NEUTRAL 0x00
655 #define LANG_INVARIANT 0x7f
657 #define LANG_AFRIKAANS 0x36
658 #define LANG_ALBANIAN 0x1c
659 #define LANG_ALSATIAN 0x84
660 #define LANG_AMHARIC 0x5e
661 #define LANG_ARABIC 0x01
662 #define LANG_ARMENIAN 0x2b
663 #define LANG_ASSAMESE 0x4d
664 #define LANG_AZERI 0x2c
665 #define LANG_BASHKIR 0x6d
666 #define LANG_BASQUE 0x2d
667 #define LANG_BELARUSIAN 0x23
668 #define LANG_BENGALI 0x45
669 #define LANG_BRETON 0x7e
670 #define LANG_BOSNIAN 0x1a
671 #define LANG_BOSNIAN_NEUTRAL 0x781a
672 #define LANG_BULGARIAN 0x02
673 #define LANG_CATALAN 0x03
674 #define LANG_CHINESE 0x04
675 #define LANG_CHINESE_SIMPLIFIED 0x04
676 #define LANG_CHINESE_TRADITIONAL 0x7c04
677 #define LANG_CORSICAN 0x83
678 #define LANG_CROATIAN 0x1a
679 #define LANG_CZECH 0x05
680 #define LANG_DANISH 0x06
681 #define LANG_DARI 0x8c
682 #define LANG_DIVEHI 0x65
683 #define LANG_DUTCH 0x13
684 #define LANG_ENGLISH 0x09
685 #define LANG_ESTONIAN 0x25
686 #define LANG_FAEROESE 0x38
687 #define LANG_FARSI 0x29
688 #define LANG_FILIPINO 0x64
689 #define LANG_FINNISH 0x0b
690 #define LANG_FRENCH 0x0c
691 #define LANG_FRISIAN 0x62
692 #define LANG_GALICIAN 0x56
693 #define LANG_GEORGIAN 0x37
694 #define LANG_GERMAN 0x07
695 #define LANG_GREEK 0x08
696 #define LANG_GREENLANDIC 0x6f
697 #define LANG_GUJARATI 0x47
698 #define LANG_HAUSA 0x68
699 #define LANG_HEBREW 0x0d
700 #define LANG_HINDI 0x39
701 #define LANG_HUNGARIAN 0x0e
702 #define LANG_ICELANDIC 0x0f
703 #define LANG_IGBO 0x70
704 #define LANG_INDONESIAN 0x21
705 #define LANG_INUKTITUT 0x5d
706 #define LANG_IRISH 0x3c
707 #define LANG_ITALIAN 0x10
708 #define LANG_JAPANESE 0x11
709 #define LANG_KANNADA 0x4b
710 #define LANG_KASHMIRI 0x60
711 #define LANG_KAZAK 0x3f
712 #define LANG_KHMER 0x53
713 #define LANG_KICHE 0x86
714 #define LANG_KINYARWANDA 0x87
715 #define LANG_KONKANI 0x57
716 #define LANG_KOREAN 0x12
717 #define LANG_KYRGYZ 0x40
718 #define LANG_LAO 0x54
719 #define LANG_LATVIAN 0x26
720 #define LANG_LITHUANIAN 0x27
721 #define LANG_LOWER_SORBIAN 0x2e
722 #define LANG_LUXEMBOURGISH 0x6e
723 #define LANG_MACEDONIAN 0x2f
724 #define LANG_MALAY 0x3e
725 #define LANG_MALAYALAM 0x4c
726 #define LANG_MALTESE 0x3a
727 #define LANG_MANIPURI 0x58
728 #define LANG_MAORI 0x81
729 #define LANG_MAPUDUNGUN 0x7a
730 #define LANG_MARATHI 0x4e
731 #define LANG_MOHAWK 0x7c
732 #define LANG_MONGOLIAN 0x50
733 #define LANG_NEPALI 0x61
734 #define LANG_NORWEGIAN 0x14
735 #define LANG_OCCITAN 0x82
736 #define LANG_ORIYA 0x48
737 #define LANG_PASHTO 0x63
738 #define LANG_PERSIAN 0x29
739 #define LANG_POLISH 0x15
740 #define LANG_PORTUGUESE 0x16
741 #define LANG_PUNJABI 0x46
742 #define LANG_QUECHUA 0x6b
743 #define LANG_ROMANIAN 0x18
744 #define LANG_ROMANSH 0x17
745 #define LANG_RUSSIAN 0x19
746 #define LANG_SAMI 0x3b
747 #define LANG_SANSKRIT 0x4f
748 #define LANG_SERBIAN 0x1a
749 #define LANG_SERBIAN_NEUTRAL 0x7c1a
750 #define LANG_SINDHI 0x59
751 #define LANG_SINHALESE 0x5b
752 #define LANG_SLOVAK 0x1b
753 #define LANG_SLOVENIAN 0x24
754 #define LANG_SOTHO 0x6c
755 #define LANG_SPANISH 0x0a
756 #define LANG_SWAHILI 0x41
757 #define LANG_SWEDISH 0x1d
758 #define LANG_SYRIAC 0x5a
759 #define LANG_TAJIK 0x28
760 #define LANG_TAMAZIGHT 0x5f
761 #define LANG_TAMIL 0x49
762 #define LANG_TATAR 0x44
763 #define LANG_TELUGU 0x4a
764 #define LANG_THAI 0x1e
765 #define LANG_TIBETAN 0x51
766 #define LANG_TIGRIGNA 0x73
767 #define LANG_TSWANA 0x32
768 #define LANG_TURKISH 0x1f
769 #define LANG_TURKMEN 0x42
770 #define LANG_UIGHUR 0x80
771 #define LANG_UKRAINIAN 0x22
772 #define LANG_UPPER_SORBIAN 0x2e
773 #define LANG_URDU 0x20
774 #define LANG_UZBEK 0x43
775 #define LANG_VIETNAMESE 0x2a
776 #define LANG_WELSH 0x52
777 #define LANG_WOLOF 0x88
778 #define LANG_XHOSA 0x34
779 #define LANG_YAKUT 0x85
781 #define LANG_YORUBA 0x6a
782 #define LANG_ZULU 0x35
784 #define VER_WORKSTATION_NT 0x40000000
785 #define VER_SERVER_NT 0x80000000
787 #define VER_SUITE_SMALLBUSINESS 1
788 #define VER_SUITE_ENTERPRISE 2
789 #define VER_SUITE_BACKOFFICE 4
790 #define VER_SUITE_COMMUNICATIONS 8
791 #define VER_SUITE_TERMINAL 16
792 #define VER_SUITE_SMALLBUSINESS_RESTRICTED 32
793 #define VER_SUITE_EMBEDDEDNT 64
794 #define VER_SUITE_DATACENTER 128
795 #define VER_SUITE_SINGLEUSERTS 256
796 #define VER_SUITE_PERSONAL 512
797 #define VER_SUITE_BLADE 1024
798 #define VER_SUITE_EMBEDDED_RESTRICTED 2048
799 #define VER_SUITE_SECURITY_APPLIANCE 4096
800 #define VER_SUITE_STORAGE_SERVER 8192
801 #define VER_SUITE_COMPUTE_SERVER 16384
802 #define VER_SUITE_WH_SERVER 32768