8 #if defined(__NTOSKRNL__) || defined(__NTDRIVER__) || defined(__NTHAL__) || defined(__NTDLL__) || defined (__NTAPP__)
13 #endif /* __NTOSKRNL__ || __NTDRIVER__ || __NTHAL__ || __NTDLL__ || __NTAPP__ */
20 * PURPOSE: Flags for RtlQueryRegistryValues
22 #define RTL_QUERY_REGISTRY_SUBKEY (0x00000001)
23 #define RTL_QUERY_REGISTRY_TOPKEY (0x00000002)
24 #define RTL_QUERY_REGISTRY_REQUIRED (0x00000004)
25 #define RTL_QUERY_REGISTRY_NOVALUE (0x00000008)
26 #define RTL_QUERY_REGISTRY_NOEXPAND (0x00000010)
27 #define RTL_QUERY_REGISTRY_DIRECT (0x00000020)
28 #define RTL_QUERY_REGISTRY_DELETE (0x00000040)
32 * PURPOSE: Used with RtlCheckRegistryKey, RtlCreateRegistryKey,
33 * RtlDeleteRegistryKey
35 #define RTL_REGISTRY_ABSOLUTE 0
36 #define RTL_REGISTRY_SERVICES 1
37 #define RTL_REGISTRY_CONTROL 2
38 #define RTL_REGISTRY_WINDOWS_NT 3
39 #define RTL_REGISTRY_DEVICEMAP 4
40 #define RTL_REGISTRY_USER 5
41 #define RTL_REGISTRY_ENUM 6 // ReactOS specific: Used internally in kernel only
42 #define RTL_REGISTRY_MAXIMUM 7
44 #define RTL_REGISTRY_HANDLE 0x40000000
45 #define RTL_REGISTRY_OPTIONAL 0x80000000
48 #define SHORT_SIZE (sizeof(USHORT))
49 #define SHORT_MASK (SHORT_SIZE-1)
50 #define LONG_SIZE (sizeof(ULONG))
51 #define LONG_MASK (LONG_SIZE-1)
52 #define LOWBYTE_MASK 0x00FF
54 #define FIRSTBYTE(Value) ((Value) & LOWBYTE_MASK)
55 #define SECONDBYTE(Value) (((Value) >> 8) & LOWBYTE_MASK)
56 #define THIRDBYTE(Value) (((Value) >> 16) & LOWBYTE_MASK)
57 #define FOURTHBYTE(Value) (((Value) >> 24) & LOWBYTE_MASK)
59 /* FIXME: reverse byte-order on big-endian machines (e.g. MIPS) */
60 #define SHORT_LEAST_SIGNIFICANT_BIT 0
61 #define SHORT_MOST_SIGNIFICANT_BIT 1
63 #define LONG_LEAST_SIGNIFICANT_BIT 0
64 #define LONG_3RD_MOST_SIGNIFICANT_BIT 1
65 #define LONG_2RD_MOST_SIGNIFICANT_BIT 2
66 #define LONG_MOST_SIGNIFICANT_BIT 3
70 #if defined(__NTOSKRNL__) || defined(__NTDLL__)
71 #define NLS_MB_CODE_PAGE_TAG NlsMbCodePageTag
72 #define NLS_MB_OEM_CODE_PAGE_TAG NlsMbOemCodePageTag
74 #define NLS_MB_CODE_PAGE_TAG (*NlsMbCodePageTag)
75 #define NLS_MB_OEM_CODE_PAGE_TAG (*NlsMbOemCodePageTag)
76 #endif /* __NTOSKRNL__ || __NTDLL__ */
78 extern BOOLEAN NLS_MB_CODE_PAGE_TAG;
79 extern BOOLEAN NLS_MB_OEM_CODE_PAGE_TAG;
83 * NOTE: ReactOS extensions
85 #define RtlMin(X,Y) (((X) < (Y))? (X) : (Y))
86 #define RtlMax(X,Y) (((X) > (Y))? (X) : (Y))
87 #define RtlMin3(X,Y,Z) (((X) < (Y)) ? RtlMin(X,Z) : RtlMin(Y,Z))
88 #define RtlMax3(X,Y,Z) (((X) > (Y)) ? RtlMax(X,Z) : RtlMax(Y,Z))
93 * InitializeObjectAttributes (
94 * POBJECT_ATTRIBUTES InitializedAttributes,
95 * PUNICODE_STRING ObjectName,
97 * HANDLE RootDirectory,
98 * PSECURITY_DESCRIPTOR SecurityDescriptor
101 * FUNCTION: Sets up a parameter of type OBJECT_ATTRIBUTES for a
102 * subsequent call to ZwCreateXXX or ZwOpenXXX
104 * InitializedAttributes (OUT) = Caller supplied storage for the
106 * ObjectName = Full path name for object
107 * Attributes = Attributes for the object
108 * RootDirectory = Where the object should be placed or NULL
109 * SecurityDescriptor = Ignored
111 #define InitializeObjectAttributes(p,n,a,r,s) \
113 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
114 (p)->ObjectName = n; \
115 (p)->Attributes = a; \
116 (p)->RootDirectory = r; \
117 (p)->SecurityDescriptor = s; \
118 (p)->SecurityQualityOfService = NULL; \
124 * InitializeListHead (
125 * PLIST_ENTRY ListHead
128 * FUNCTION: Initializes a double linked list
130 * ListHead = Caller supplied storage for the head of the list
132 #define InitializeListHead(ListHead) \
134 (ListHead)->Flink = (ListHead); \
135 (ListHead)->Blink = (ListHead); \
142 * PLIST_ENTRY ListHead,
146 * FUNCTION: Inserts an entry in a double linked list
148 * ListHead = Head of the list
149 * Entry = Entry to insert
151 #define InsertHeadList(ListHead, ListEntry) \
153 PLIST_ENTRY OldFlink; \
154 OldFlink = (ListHead)->Flink; \
155 (ListEntry)->Flink = OldFlink; \
156 (ListEntry)->Blink = (ListHead); \
157 OldFlink->Blink = (ListEntry); \
158 (ListHead)->Flink = (ListEntry); \
159 assert((ListEntry) != NULL); \
160 assert((ListEntry)->Blink!=NULL); \
161 assert((ListEntry)->Blink->Flink == (ListEntry)); \
162 assert((ListEntry)->Flink != NULL); \
163 assert((ListEntry)->Flink->Blink == (ListEntry)); \
170 * PLIST_ENTRY ListHead,
175 * Inserts an entry in a double linked list
178 * ListHead = Head of the list
179 * Entry = Entry to insert
181 #define InsertTailList(ListHead, ListEntry) \
183 PLIST_ENTRY OldBlink; \
184 OldBlink = (ListHead)->Blink; \
185 (ListEntry)->Flink = (ListHead); \
186 (ListEntry)->Blink = OldBlink; \
187 OldBlink->Flink = (ListEntry); \
188 (ListHead)->Blink = (ListEntry); \
189 assert((ListEntry) != NULL); \
190 assert((ListEntry)->Blink != NULL); \
191 assert((ListEntry)->Blink->Flink == (ListEntry)); \
192 assert((ListEntry)->Flink != NULL); \
193 assert((ListEntry)->Flink->Blink == (ListEntry)); \
199 * PLIST_ENTRY ListHead
203 * Checks if a double linked list is empty
206 * ListHead = Head of the list
208 #define IsListEmpty(ListHead) \
209 ((ListHead)->Flink == (ListHead))
215 * PSINGLE_LIST_ENTRY ListHead
219 * Removes an entry from the head of a single linked list
222 * ListHead = Head of the list
228 #define PopEntryList(ListHead) \
231 PSINGLE_LIST_ENTRY FirstEntry; \
232 FirstEntry = (ListHead)->Next; \
233 if (FirstEntry != NULL) \
235 (ListHead)->Next = FirstEntry->Next; \
243 PSINGLE_LIST_ENTRY ListHead
246 PSINGLE_LIST_ENTRY ListEntry;
248 ListEntry = ListHead->Next;
251 ListHead->Next = ListEntry->Next;
259 PSINGLE_LIST_ENTRY ListHead,
260 PSINGLE_LIST_ENTRY Entry
264 #define PushEntryList(ListHead,Entry) \
265 (Entry)->Next = (ListHead)->Next; \
266 (ListHead)->Next = (Entry)
272 PSINGLE_LIST_ENTRY ListHead,
273 PSINGLE_LIST_ENTRY Entry
276 Entry->Next = ListHead->Next;
277 ListHead->Next = Entry;
282 * An ReactOS extension
288 PSLIST_HEADER ListHead
291 PSINGLE_LIST_ENTRY ListEntry;
293 ListEntry = ListHead->s.Next.Next;
296 ListHead->s.Next.Next = ListEntry->Next;
298 ListHead->s.Sequence++;
305 * An ReactOS extension
311 PSLIST_HEADER ListHead,
312 PSINGLE_LIST_ENTRY Entry
315 Entry->Next = ListHead->s.Next.Next;
316 ListHead->s.Next.Next = Entry;
318 ListHead->s.Sequence++;
329 * Removes an entry from a double linked list
332 * ListEntry = Entry to remove
334 #define RemoveEntryList(ListEntry) \
336 PLIST_ENTRY OldFlink; \
337 PLIST_ENTRY OldBlink; \
338 assert((ListEntry) != NULL); \
339 assert((ListEntry)->Blink!=NULL); \
340 assert((ListEntry)->Blink->Flink == (ListEntry)); \
341 assert((ListEntry)->Flink != NULL); \
342 assert((ListEntry)->Flink->Blink == (ListEntry)); \
343 OldFlink = (ListEntry)->Flink; \
344 OldBlink = (ListEntry)->Blink; \
345 OldFlink->Blink = OldBlink; \
346 OldBlink->Flink = OldFlink; \
347 (ListEntry)->Flink = NULL; \
348 (ListEntry)->Blink = NULL; \
355 * PLIST_ENTRY ListHead
359 * Removes the head entry from a double linked list
362 * ListHead = Head of the list
368 #define RemoveHeadList(ListHead) \
370 {RemoveEntryList((ListHead)->Flink)}
387 PLIST_ENTRY OldFlink;
388 PLIST_ENTRY OldBlink;
390 Old = ListHead->Flink;
392 OldFlink = ListHead->Flink->Flink;
393 OldBlink = ListHead->Flink->Blink;
394 OldFlink->Blink = OldBlink;
395 OldBlink->Flink = OldFlink;
409 * PLIST_ENTRY ListHead
413 * Removes the tail entry from a double linked list
416 * ListHead = Head of the list
422 #define RemoveTailList(ListHead) \
424 {RemoveEntryList((ListHead)->Blink)}
441 PLIST_ENTRY OldFlink;
442 PLIST_ENTRY OldBlink;
444 Old = ListHead->Blink;
446 OldFlink = ListHead->Blink->Flink;
447 OldBlink = ListHead->Blink->Blink;
448 OldFlink->Blink = OldBlink;
449 OldBlink->Flink = OldFlink;
462 RtlAddAtomToAtomTable (
463 IN PRTL_ATOM_TABLE AtomTable,
477 RtlAnsiCharToUnicodeChar (
483 RtlAnsiStringToUnicodeSize (
484 PANSI_STRING AnsiString
489 RtlAnsiStringToUnicodeString (
490 PUNICODE_STRING DestinationString,
491 PANSI_STRING SourceString,
492 BOOLEAN AllocateDestinationString
497 RtlAppendAsciizToString(
504 RtlAppendStringToString (
511 RtlAppendUnicodeStringToString (
512 PUNICODE_STRING Destination,
513 PUNICODE_STRING Source
518 RtlAppendUnicodeToString (
519 PUNICODE_STRING Destination,
526 PRTL_BITMAP BitMapHeader,
534 PRTL_BITMAP BitMapHeader,
542 PVOID FailedAssertion,
558 RtlCheckRegistryKey (
566 IN PRTL_BITMAP BitMapHeader
572 IN PRTL_BITMAP BitMapHeader,
573 IN ULONG StartingIndex,
574 IN ULONG NumberToClear
597 BOOLEAN CaseInsensitive
602 RtlCompareUnicodeString (
603 PUNICODE_STRING String1,
604 PUNICODE_STRING String2,
605 BOOLEAN BaseInsensitive
609 RtlCompressBuffer(IN USHORT CompressionFormatAndEngine,
610 IN PUCHAR UncompressedBuffer,
611 IN ULONG UncompressedBufferSize,
612 OUT PUCHAR CompressedBuffer,
613 IN ULONG CompressedBufferSize,
614 IN ULONG UncompressedChunkSize,
615 OUT PULONG FinalCompressedSize,
619 RtlCompressChunks(IN PUCHAR UncompressedBuffer,
620 IN ULONG UncompressedBufferSize,
621 OUT PUCHAR CompressedBuffer,
622 IN ULONG CompressedBufferSize,
623 IN OUT PCOMPRESSED_DATA_INFO CompressedDataInfo,
624 IN ULONG CompressedDataInfoLength,
627 LARGE_INTEGER STDCALL
628 RtlConvertLongToLargeInteger(IN LONG SignedInteger);
631 RtlConvertSidToUnicodeString(IN OUT PUNICODE_STRING String,
633 IN BOOLEAN AllocateString);
635 LARGE_INTEGER STDCALL
636 RtlConvertUlongToLargeInteger(IN ULONG UnsignedInteger);
654 #define RtlCopyMemory(Destination,Source,Length) \
655 memcpy((Destination),(Source),(Length))
657 #define RtlCopyBytes RtlCopyMemory
660 RtlCopyLuid(IN PLUID LuidDest,
664 RtlCopyLuidAndAttributesArray(ULONG Count,
665 PLUID_AND_ATTRIBUTES Src,
666 PLUID_AND_ATTRIBUTES Dest);
669 RtlCopySid(ULONG BufferLength,
674 RtlCopySidAndAttributesArray(ULONG Count,
675 PSID_AND_ATTRIBUTES Src,
677 PSID_AND_ATTRIBUTES Dest,
679 PVOID* RemainingSidArea,
680 PULONG RemainingSidAreaSize);
683 RtlCopyString(PSTRING DestinationString,
684 PSTRING SourceString);
687 RtlCopyUnicodeString(PUNICODE_STRING DestinationString,
688 PUNICODE_STRING SourceString);
691 RtlCreateAtomTable(IN ULONG TableSize,
692 IN OUT PRTL_ATOM_TABLE *AtomTable);
702 PRTL_HEAP_DEFINITION Definition
707 RtlCreateRegistryKey (
714 RtlCreateSecurityDescriptor (
715 PSECURITY_DESCRIPTOR SecurityDescriptor,
721 RtlCreateUnicodeString (
722 OUT PUNICODE_STRING Destination,
727 RtlCreateUnicodeStringFromAsciiz (OUT PUNICODE_STRING Destination,
732 RtlCustomCPToUnicodeN (
733 PRTL_NLS_DATA NlsData,
734 PWCHAR UnicodeString,
742 RtlDecompressBuffer(IN USHORT CompressionFormat,
743 OUT PUCHAR UncompressedBuffer,
744 IN ULONG UncompressedBufferSize,
745 IN PUCHAR CompressedBuffer,
746 IN ULONG CompressedBufferSize,
747 OUT PULONG FinalUncompressedSize);
750 RtlDecompressChunks(OUT PUCHAR UncompressedBuffer,
751 IN ULONG UncompressedBufferSize,
752 IN PUCHAR CompressedBuffer,
753 IN ULONG CompressedBufferSize,
754 IN PUCHAR CompressedTail,
755 IN ULONG CompressedTailSize,
756 IN PCOMPRESSED_DATA_INFO CompressedDataInfo);
759 RtlDecompressFragment(IN USHORT CompressionFormat,
760 OUT PUCHAR UncompressedFragment,
761 IN ULONG UncompressedFragmentSize,
762 IN PUCHAR CompressedBuffer,
763 IN ULONG CompressedBufferSize,
764 IN ULONG FragmentOffset,
765 OUT PULONG FinalUncompressedSize,
769 RtlDeleteAtomFromAtomTable(IN PRTL_ATOM_TABLE AtomTable,
773 RtlDeleteRegistryValue(IN ULONG RelativeTo,
778 RtlDescribeChunk(IN USHORT CompressionFormat,
779 IN OUT PUCHAR *CompressedBuffer,
780 IN PUCHAR EndOfCompressedBufferPlus1,
781 OUT PUCHAR *ChunkBuffer,
782 OUT PULONG ChunkSize);
785 RtlDestroyAtomTable(IN PRTL_ATOM_TABLE AtomTable);
788 RtlDestroyHeap(HANDLE hheap);
792 RtlDowncaseUnicodeString (
793 IN OUT PUNICODE_STRING DestinationString,
794 IN PUNICODE_STRING SourceString,
795 IN BOOLEAN AllocateDestinationString
801 IN PRTL_ATOM_TABLE AtomTable,
802 IN BOOLEAN DeletePinned
807 RtlEnlargedIntegerMultiply (
814 RtlEnlargedUnsignedDivide (
815 ULARGE_INTEGER Dividend,
822 RtlEnlargedUnsignedMultiply (
828 RtlEqualLuid(IN PLUID Luid1,
836 BOOLEAN CaseInSensitive
841 RtlEqualUnicodeString (
842 PUNICODE_STRING String1,
843 PUNICODE_STRING String2,
844 BOOLEAN CaseInSensitive
849 RtlExtendedIntegerMultiply (
850 LARGE_INTEGER Multiplicand,
856 RtlExtendedLargeIntegerDivide (
857 LARGE_INTEGER Dividend,
864 RtlExtendedMagicDivide (
865 LARGE_INTEGER Dividend,
866 LARGE_INTEGER MagicDivisor,
889 PRTL_BITMAP BitMapHeader,
896 RtlFindClearBitsAndSet (
897 PRTL_BITMAP BitMapHeader,
904 RtlFindFirstRunClear (
905 PRTL_BITMAP BitMapHeader,
912 PRTL_BITMAP BitMapHeader,
918 RtlFindLongestRunClear (
919 PRTL_BITMAP BitMapHeader,
925 RtlFindLongestRunSet (
926 PRTL_BITMAP BitMapHeader,
933 IN PVOID BaseAddress,
937 OUT PRTL_MESSAGE_RESOURCE_ENTRY *MessageResourceEntry
943 PRTL_BITMAP BitMapHeader,
950 RtlFindSetBitsAndClear (
951 PRTL_BITMAP BitMapHeader,
958 RtlFormatCurrentUserKeyPath (
959 IN OUT PUNICODE_STRING KeyPath
965 PANSI_STRING AnsiString
979 POEM_STRING OemString
984 RtlFreeUnicodeString (
985 PUNICODE_STRING UnicodeString
989 RtlGenerate8dot3Name(IN PUNICODE_STRING Name,
990 IN BOOLEAN AllowExtendedCharacters,
991 IN OUT PGENERATE_NAME_CONTEXT Context,
992 OUT PUNICODE_STRING Name8dot3);
995 RtlGetCallersAddress (
996 PVOID * CallersAddress
1000 RtlGetCompressionWorkSpaceSize(IN USHORT CompressionFormatAndEngine,
1001 OUT PULONG CompressBufferAndWorkSpaceSize,
1002 OUT PULONG CompressFragmentWorkSpaceSize);
1006 RtlGetDefaultCodePage (
1007 PUSHORT AnsiCodePage,
1011 #define RtlGetProcessHeap() (NtCurrentPeb()->ProcessHeap)
1015 RtlImageDirectoryEntryToData (
1028 PIMAGE_SECTION_HEADER
1030 RtlImageRvaToSection (
1031 PIMAGE_NT_HEADERS NtHeader,
1039 PIMAGE_NT_HEADERS NtHeader,
1042 PIMAGE_SECTION_HEADER *SectionHeader
1048 PANSI_STRING DestinationString,
1055 PSTRING DestinationString,
1061 RtlInitUnicodeString (
1062 PUNICODE_STRING DestinationString,
1068 InitializeUnicodeString (
1069 PUNICODE_STRING DestinationString,
1071 USHORT MaximumLength,
1075 Initialize an UNICODE_STRING from its fields. Use when you know the values of
1076 all the fields in advance
1080 #define InitializeUnicodeString(__PDEST_STRING__,__LENGTH__,__MAXLENGTH__,__BUFFER__) \
1082 (__PDEST_STRING__)->Length = (__LENGTH__); \
1083 (__PDEST_STRING__)->MaximumLength = (__MAXLENGTH__); \
1084 (__PDEST_STRING__)->Buffer = (__BUFFER__); \
1089 RtlInitUnicodeStringFromLiteral (
1090 PUNICODE_STRING DestinationString,
1094 Initialize an UNICODE_STRING from a wide string literal. WARNING: use only with
1095 string literals and statically initialized arrays, it will calculate the wrong
1100 /* Prevent hide of the inappropriate passed type by our
1101 * de"const" of the string in the macro below.
1103 static inline const WCHAR *_RtlInitUnicodeStringFromLiteral_typecheck(const WCHAR *s) { return s; }
1105 #define RtlInitUnicodeStringFromLiteral(__PDEST_STRING__,__SOURCE_STRING__) \
1106 InitializeUnicodeString( \
1107 (__PDEST_STRING__), \
1108 sizeof(__SOURCE_STRING__) - sizeof(WCHAR), \
1109 sizeof(__SOURCE_STRING__), \
1110 (WCHAR * /* de"const" the string here */ )_RtlInitUnicodeStringFromLiteral_typecheck((__SOURCE_STRING__)) \
1114 Static initializer for UNICODE_STRING variables. Usage:
1116 UNICODE_STRING wstr = UNICODE_STRING_INITIALIZER(L"string");
1120 #define UNICODE_STRING_INITIALIZER(__SOURCE_STRING__) \
1122 sizeof((__SOURCE_STRING__)) - sizeof(WCHAR), \
1123 sizeof((__SOURCE_STRING__)), \
1124 (__SOURCE_STRING__) \
1128 Initializer for empty UNICODE_STRING variables. Usage:
1130 UNICODE_STRING wstr = EMPTY_UNICODE_STRING;
1133 #define EMPTY_UNICODE_STRING {0, 0, NULL}
1137 RtlInitializeBitMap (
1138 IN OUT PRTL_BITMAP BitMapHeader,
1139 IN PULONG BitMapBuffer,
1140 IN ULONG SizeOfBitMap
1145 RtlInitializeContext (
1146 IN HANDLE ProcessHandle,
1147 IN PCONTEXT Context,
1149 IN PTHREAD_START_ROUTINE StartAddress,
1150 IN OUT PINITIAL_TEB InitialTeb
1155 RtlInitializeGenericTable (
1156 IN OUT PRTL_GENERIC_TABLE Table,
1157 IN PVOID CompareRoutine,
1158 IN PVOID AllocateRoutine,
1159 IN PVOID FreeRoutine,
1160 IN ULONG UserParameter
1165 RtlInsertElementGenericTable (
1166 IN OUT PRTL_GENERIC_TABLE Table,
1168 IN ULONG ElementSize,
1183 RtlIntegerToUnicodeString (
1186 IN OUT PUNICODE_STRING String
1191 RtlIsGenericTableEmpty (
1192 IN PRTL_GENERIC_TABLE Table
1196 RtlIsNameLegalDOS8Dot3(IN PUNICODE_STRING UnicodeName,
1197 IN PANSI_STRING AnsiName,
1198 OUT PBOOLEAN SpacesFound);
1202 RtlLargeIntegerAdd (
1203 LARGE_INTEGER Addend1,
1204 LARGE_INTEGER Addend2
1209 * RtlLargeIntegerAnd (
1210 * PLARGE_INTEGER Result,
1211 * LARGE_INTEGER Source,
1212 * LARGE_INTEGER Mask
1215 #define RtlLargeIntegerAnd(Result, Source, Mask) \
1217 Result.HighPart = Source.HighPart & Mask.HighPart; \
1218 Result.LowPart = Source.LowPart & Mask.LowPart; \
1223 RtlLargeIntegerArithmeticShift (
1224 LARGE_INTEGER LargeInteger,
1230 RtlLargeIntegerDivide (
1231 LARGE_INTEGER Dividend,
1232 LARGE_INTEGER Divisor,
1233 PLARGE_INTEGER Remainder
1238 * RtlLargeIntegerEqualTo (
1239 * LARGE_INTEGER Operand1,
1240 * LARGE_INTEGER Operand2
1243 #define RtlLargeIntegerEqualTo(X,Y) \
1244 (!(((X).LowPart ^ (Y).LowPart) | ((X).HighPart ^ (Y).HighPart)))
1248 * RtlLargeIntegerEqualToZero (
1249 * LARGE_INTEGER Operand
1252 #define RtlLargeIntegerEqualToZero(X) \
1253 (!((X).LowPart | (X).HighPart))
1257 * RtlLargeIntegerGreaterThan (
1258 * LARGE_INTEGER Operand1,
1259 * LARGE_INTEGER Operand2
1262 #define RtlLargeIntegerGreaterThan(X,Y) \
1263 ((((X).HighPart == (Y).HighPart) && ((X).LowPart > (Y).LowPart)) || \
1264 ((X).HighPart > (Y).HighPart))
1268 * RtlLargeIntegerGreaterThanOrEqualTo (
1269 * LARGE_INTEGER Operand1,
1270 * LARGE_INTEGER Operand2
1273 #define RtlLargeIntegerGreaterThanOrEqualTo(X,Y) \
1274 ((((X).HighPart == (Y).HighPart) && ((X).LowPart >= (Y).LowPart)) || \
1275 ((X).HighPart > (Y).HighPart))
1279 * RtlLargeIntegerGreaterThanOrEqualToZero (
1280 * LARGE_INTEGER Operand1
1283 #define RtlLargeIntegerGreaterOrEqualToZero(X) \
1288 * RtlLargeIntegerGreaterThanZero (
1289 * LARGE_INTEGER Operand1
1292 #define RtlLargeIntegerGreaterThanZero(X) \
1293 ((((X).HighPart == 0) && ((X).LowPart > 0)) || \
1294 ((X).HighPart > 0 ))
1298 * RtlLargeIntegerLessThan (
1299 * LARGE_INTEGER Operand1,
1300 * LARGE_INTEGER Operand2
1303 #define RtlLargeIntegerLessThan(X,Y) \
1304 ((((X).HighPart == (Y).HighPart) && ((X).LowPart < (Y).LowPart)) || \
1305 ((X).HighPart < (Y).HighPart))
1309 * RtlLargeIntegerLessThanOrEqualTo (
1310 * LARGE_INTEGER Operand1,
1311 * LARGE_INTEGER Operand2
1314 #define RtlLargeIntegerLessThanOrEqualTo(X,Y) \
1315 ((((X).HighPart == (Y).HighPart) && ((X).LowPart <= (Y).LowPart)) || \
1316 ((X).HighPart < (Y).HighPart))
1320 * RtlLargeIntegerLessThanOrEqualToZero (
1321 * LARGE_INTEGER Operand
1324 #define RtlLargeIntegerLessOrEqualToZero(X) \
1325 (((X).HighPart < 0) || !((X).LowPart | (X).HighPart))
1329 * RtlLargeIntegerLessThanZero (
1330 * LARGE_INTEGER Operand
1333 #define RtlLargeIntegerLessThanZero(X) \
1334 (((X).HighPart < 0))
1338 RtlLargeIntegerNegate (
1339 LARGE_INTEGER Subtrahend
1344 * RtlLargeIntegerNotEqualTo (
1345 * LARGE_INTEGER Operand1,
1346 * LARGE_INTEGER Operand2
1349 #define RtlLargeIntegerNotEqualTo(X,Y) \
1350 ((((X).LowPart ^ (Y).LowPart) | ((X).HighPart ^ (Y).HighPart)))
1354 * RtlLargeIntegerNotEqualToZero (
1355 * LARGE_INTEGER Operand
1358 #define RtlLargeIntegerNotEqualToZero(X) \
1359 (((X).LowPart | (X).HighPart))
1363 RtlLargeIntegerShiftLeft (
1364 LARGE_INTEGER LargeInteger,
1370 RtlLargeIntegerShiftRight (
1371 LARGE_INTEGER LargeInteger,
1377 RtlLargeIntegerSubtract (
1378 LARGE_INTEGER Minuend,
1379 LARGE_INTEGER Subtrahend
1384 RtlLengthSecurityDescriptor (
1385 PSECURITY_DESCRIPTOR SecurityDescriptor
1396 RtlLookupAtomInAtomTable (
1397 IN PRTL_ATOM_TABLE AtomTable,
1403 RtlMoveMemory (PVOID Destination, CONST VOID* Source, ULONG Length);
1407 RtlMultiByteToUnicodeN (
1408 PWCHAR UnicodeString,
1417 RtlMultiByteToUnicodeSize (
1425 RtlNtStatusToDosError (
1431 RtlNtStatusToDosErrorNoTeb (
1437 RtlNtStatusToPsxErrno (
1443 RtlNumberGenericTableElements (
1444 IN PRTL_GENERIC_TABLE Table
1449 RtlNumberOfClearBits (
1450 PRTL_BITMAP BitMapHeader
1455 RtlNumberOfSetBits (
1456 PRTL_BITMAP BitMapHeader
1461 RtlOemStringToUnicodeSize (
1462 POEM_STRING AnsiString
1467 RtlOemStringToUnicodeString (
1468 PUNICODE_STRING DestinationString,
1469 POEM_STRING SourceString,
1470 BOOLEAN AllocateDestinationString
1476 PWCHAR UnicodeString,
1485 RtlOpenCurrentUser (
1486 IN ACCESS_MASK DesiredAccess,
1487 OUT PHANDLE KeyHandle
1491 RtlPinAtomInAtomTable (
1492 IN PRTL_ATOM_TABLE AtomTable,
1499 PANSI_STRING String1,
1500 PANSI_STRING String2,
1501 BOOLEAN CaseInsensitive
1506 RtlPrefixUnicodeString (
1507 PUNICODE_STRING String1,
1508 PUNICODE_STRING String2,
1509 BOOLEAN CaseInsensitive
1514 RtlQueryAtomInAtomTable (
1515 IN PRTL_ATOM_TABLE AtomTable,
1517 IN OUT PULONG RefCount OPTIONAL,
1518 IN OUT PULONG PinCount OPTIONAL,
1519 IN OUT PWSTR AtomName OPTIONAL,
1520 IN OUT PULONG NameLength OPTIONAL
1525 RtlQueryRegistryValues (
1526 IN ULONG RelativeTo,
1528 IN PRTL_QUERY_REGISTRY_TABLE QueryTable,
1530 IN PVOID Environment
1535 RtlQueryTimeZoneInformation (
1536 IN OUT PTIME_ZONE_INFORMATION TimeZoneInformation
1542 IN PEXCEPTION_RECORD ExceptionRecord
1555 RtlReserveChunk(IN USHORT CompressionFormat,
1556 IN OUT PUCHAR *CompressedBuffer,
1557 IN PUCHAR EndOfCompressedBufferPlus1,
1558 OUT PUCHAR *ChunkBuffer,
1559 IN ULONG ChunkSize);
1563 * RtlRetrieveUlong (
1564 * PULONG DestinationAddress,
1565 * PULONG SourceAddress
1568 #define RtlRetrieveUlong(DestAddress,SrcAddress) \
1569 if ((ULONG)(SrcAddress) & LONG_MASK) \
1571 ((PUCHAR)(DestAddress))[0]=((PUCHAR)(SrcAddress))[0]; \
1572 ((PUCHAR)(DestAddress))[1]=((PUCHAR)(SrcAddress))[1]; \
1573 ((PUCHAR)(DestAddress))[2]=((PUCHAR)(SrcAddress))[2]; \
1574 ((PUCHAR)(DestAddress))[3]=((PUCHAR)(SrcAddress))[3]; \
1578 *((PULONG)(DestAddress))=*((PULONG)(SrcAddress)); \
1583 * RtlRetrieveUshort (
1584 * PUSHORT DestinationAddress,
1585 * PUSHORT SourceAddress
1588 #define RtlRetrieveUshort(DestAddress,SrcAddress) \
1589 if ((ULONG)(SrcAddress) & SHORT_MASK) \
1591 ((PUCHAR)(DestAddress))[0]=((PUCHAR)(SrcAddress))[0]; \
1592 ((PUCHAR)(DestAddress))[1]=((PUCHAR)(SrcAddress))[1]; \
1596 *((PUSHORT)(DestAddress))=*((PUSHORT)(SrcAddress)); \
1601 RtlSecondsSince1970ToTime (
1602 ULONG SecondsSince1970,
1608 RtlSecondsSince1980ToTime (
1609 ULONG SecondsSince1980,
1616 IN PRTL_BITMAP BitMapHeader
1622 PRTL_BITMAP BitMapHeader,
1623 ULONG StartingIndex,
1629 RtlSetDaclSecurityDescriptor (
1630 PSECURITY_DESCRIPTOR SecurityDescriptor,
1631 BOOLEAN DaclPresent,
1633 BOOLEAN DaclDefaulted
1638 RtlSetTimeZoneInformation (
1639 IN OUT PTIME_ZONE_INFORMATION TimeZoneInformation
1657 #define RtlStoreUlong(Address,Value) \
1658 if ((ULONG)(Address) & LONG_MASK) \
1660 ((PUCHAR)(Address))[LONG_LEAST_SIGNIFICANT_BIT]=(UCHAR)(FIRSTBYTE(Value)); \
1661 ((PUCHAR)(Address))[LONG_3RD_MOST_SIGNIFICANT_BIT]=(UCHAR)(FIRSTBYTE(Value)); \
1662 ((PUCHAR)(Address))[LONG_2ND_MOST_SIGNIFICANT_BIT]=(UCHAR)(THIRDBYTE(Value)); \
1663 ((PUCHAR)(Address))[LONG_MOST_SIGNIFICANT_BIT]=(UCHAR)(FOURTHBYTE(Value)); \
1667 *((PULONG)(Address))=(ULONG)(Value); \
1677 #define RtlStoreUshort(Address,Value) \
1678 if ((ULONG)(Address) & SHORT_MASK) \
1680 ((PUCHAR)(Address))[SHORT_LEAST_SIGNIFICANT_BIT]=(UCHAR)(FIRSTBYTE(Value)); \
1681 ((PUCHAR)(Address))[SHORT_MOST_SIGNIFICANT_BIT]=(UCHAR)(SECONDBYTE(Value)); \
1685 *((PUSHORT)(Address))=(USHORT)(Value); \
1690 RtlTimeFieldsToTime (
1691 PTIME_FIELDS TimeFields,
1697 RtlTimeToSecondsSince1970 (
1698 PLARGE_INTEGER Time,
1699 PULONG SecondsSince1970
1704 RtlTimeToSecondsSince1980 (
1705 PLARGE_INTEGER Time,
1706 PULONG SecondsSince1980
1711 RtlTimeToTimeFields (
1712 PLARGE_INTEGER Time,
1713 PTIME_FIELDS TimeFields
1718 RtlUnicodeStringToAnsiSize (
1719 IN PUNICODE_STRING UnicodeString
1724 RtlUnicodeStringToAnsiString (
1725 IN OUT PANSI_STRING DestinationString,
1726 IN PUNICODE_STRING SourceString,
1727 IN BOOLEAN AllocateDestinationString
1732 RtlUnicodeStringToInteger (
1733 IN PUNICODE_STRING String,
1740 RtlUnicodeStringToOemSize (
1741 IN PUNICODE_STRING UnicodeString
1746 RtlUnicodeStringToCountedOemString (
1747 IN OUT POEM_STRING DestinationString,
1748 IN PUNICODE_STRING SourceString,
1749 IN BOOLEAN AllocateDestinationString
1754 RtlUnicodeStringToOemString (
1755 IN OUT POEM_STRING DestinationString,
1756 IN PUNICODE_STRING SourceString,
1757 IN BOOLEAN AllocateDestinationString
1762 RtlUnicodeToCustomCPN (
1763 PRTL_NLS_DATA NlsData,
1767 PWCHAR UnicodeString,
1773 RtlUnicodeToMultiByteN (
1777 PWCHAR UnicodeString,
1783 RtlUnicodeToMultiByteSize (
1785 PWCHAR UnicodeString,
1795 PWCHAR UnicodeString,
1808 PEXCEPTION_REGISTRATION RegistrationFrame,
1809 PVOID ReturnAddress,
1810 PEXCEPTION_RECORD ExceptionRecord,
1816 RtlUpcaseUnicodeChar (
1822 RtlUpcaseUnicodeString (
1823 IN OUT PUNICODE_STRING DestinationString,
1824 IN PUNICODE_STRING SourceString,
1825 IN BOOLEAN AllocateDestinationString
1830 RtlUpcaseUnicodeStringToAnsiString (
1831 IN OUT PANSI_STRING DestinationString,
1832 IN PUNICODE_STRING SourceString,
1833 IN BOOLEAN AllocateDestinationString
1838 RtlUpcaseUnicodeStringToCountedOemString (
1839 IN OUT POEM_STRING DestinationString,
1840 IN PUNICODE_STRING SourceString,
1841 IN BOOLEAN AllocateDestinationString
1846 RtlUpcaseUnicodeStringToOemString (
1847 IN OUT POEM_STRING DestinationString,
1848 IN PUNICODE_STRING SourceString,
1849 IN BOOLEAN AllocateDestinationString
1854 RtlUpcaseUnicodeToCustomCPN (
1855 PRTL_NLS_DATA NlsData,
1859 PWCHAR UnicodeString,
1865 RtlUpcaseUnicodeToMultiByteN (
1869 PWCHAR UnicodeString,
1875 RtlUpcaseUnicodeToOemN (
1879 PWCHAR UnicodeString,
1892 PSTRING DestinationString,
1893 PSTRING SourceString
1906 RtlValidSecurityDescriptor (
1907 PSECURITY_DESCRIPTOR SecurityDescriptor
1911 RtlValidSid(IN PSID Sid);
1915 RtlWriteRegistryValue (
1925 RtlZeroMemory (PVOID Destination, ULONG Length);
1929 RtlxAnsiStringToUnicodeSize (
1930 IN PANSI_STRING AnsiString
1935 RtlxOemStringToUnicodeSize (
1936 IN POEM_STRING OemString
1941 RtlxUnicodeStringToAnsiSize (
1942 IN PUNICODE_STRING UnicodeString
1947 RtlxUnicodeStringToOemSize (
1948 IN PUNICODE_STRING UnicodeString
1952 /* Register io functions */
1956 READ_REGISTER_UCHAR (
1962 READ_REGISTER_USHORT (
1968 READ_REGISTER_ULONG (
1974 READ_REGISTER_BUFFER_UCHAR (
1982 READ_REGISTER_BUFFER_USHORT (
1990 READ_REGISTER_BUFFER_ULONG (
1998 WRITE_REGISTER_UCHAR (
2005 WRITE_REGISTER_USHORT (
2012 WRITE_REGISTER_ULONG (
2019 WRITE_REGISTER_BUFFER_UCHAR (
2027 WRITE_REGISTER_BUFFER_USHORT (
2035 WRITE_REGISTER_BUFFER_ULONG (
2042 NTSTATUS STDCALL RtlCreateAcl(PACL Acl, ULONG AclSize, ULONG AclRevision);
2043 NTSTATUS STDCALL RtlQueryInformationAcl (PACL Acl, PVOID Information, ULONG InformationLength, ACL_INFORMATION_CLASS InformationClass);
2044 NTSTATUS STDCALL RtlSetInformationAcl (PACL Acl, PVOID Information, ULONG InformationLength, ACL_INFORMATION_CLASS InformationClass);
2045 BOOLEAN STDCALL RtlValidAcl (PACL Acl);
2047 NTSTATUS STDCALL RtlAddAccessAllowedAce(PACL Acl, ULONG Revision, ACCESS_MASK AccessMask, PSID Sid);
2048 NTSTATUS STDCALL RtlAddAccessDeniedAce(PACL Acl, ULONG Revision, ACCESS_MASK AccessMask, PSID Sid);
2049 NTSTATUS STDCALL RtlAddAce(PACL Acl, ULONG Revision, ULONG StartingIndex, PACE AceList, ULONG AceListLength);
2050 NTSTATUS STDCALL RtlAddAuditAccessAce (PACL Acl, ULONG Revision, ACCESS_MASK AccessMask, PSID Sid, BOOLEAN Success, BOOLEAN Failure);
2051 NTSTATUS STDCALL RtlDeleteAce(PACL Acl, ULONG AceIndex);
2052 BOOLEAN STDCALL RtlFirstFreeAce(PACL Acl, PACE* Ace);
2053 NTSTATUS STDCALL RtlGetAce(PACL Acl, ULONG AceIndex, PACE *Ace);
2055 NTSTATUS STDCALL RtlAbsoluteToSelfRelativeSD (PSECURITY_DESCRIPTOR AbsSD, PSECURITY_DESCRIPTOR RelSD, PULONG BufferLength);
2056 NTSTATUS STDCALL RtlMakeSelfRelativeSD (PSECURITY_DESCRIPTOR AbsSD, PSECURITY_DESCRIPTOR RelSD, PULONG BufferLength);
2057 NTSTATUS STDCALL RtlCreateSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, ULONG Revision);
2058 BOOLEAN STDCALL RtlValidSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor);
2059 ULONG STDCALL RtlLengthSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor);
2060 NTSTATUS STDCALL RtlSetDaclSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, BOOLEAN DaclPresent, PACL Dacl, BOOLEAN DaclDefaulted);
2061 NTSTATUS STDCALL RtlGetDaclSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, PBOOLEAN DaclPresent, PACL* Dacl, PBOOLEAN DaclDefauted);
2062 NTSTATUS STDCALL RtlSetOwnerSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, PSID Owner, BOOLEAN OwnerDefaulted);
2063 NTSTATUS STDCALL RtlGetOwnerSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, PSID* Owner, PBOOLEAN OwnerDefaulted);
2064 NTSTATUS STDCALL RtlSetGroupSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, PSID Group, BOOLEAN GroupDefaulted);
2065 NTSTATUS STDCALL RtlGetGroupSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, PSID* Group, PBOOLEAN GroupDefaulted);
2066 NTSTATUS STDCALL RtlGetControlSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, PSECURITY_DESCRIPTOR_CONTROL Control, PULONG Revision);
2067 NTSTATUS STDCALL RtlSetSaclSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, BOOLEAN SaclPresent, PACL Sacl, BOOLEAN SaclDefaulted);
2068 NTSTATUS STDCALL RtlGetSaclSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, PBOOLEAN SaclPresent, PACL* Sacl, PBOOLEAN SaclDefauted);
2069 NTSTATUS STDCALL RtlSelfRelativeToAbsoluteSD (PSECURITY_DESCRIPTOR RelSD,
2070 PSECURITY_DESCRIPTOR AbsSD,
2081 NTSTATUS STDCALL RtlAllocateAndInitializeSid (PSID_IDENTIFIER_AUTHORITY IdentifierAuthority,
2082 UCHAR SubAuthorityCount,
2083 ULONG SubAuthority0,
2084 ULONG SubAuthority1,
2085 ULONG SubAuthority2,
2086 ULONG SubAuthority3,
2087 ULONG SubAuthority4,
2088 ULONG SubAuthority5,
2089 ULONG SubAuthority6,
2090 ULONG SubAuthority7,
2092 ULONG STDCALL RtlLengthRequiredSid (UCHAR SubAuthorityCount);
2093 PSID_IDENTIFIER_AUTHORITY STDCALL RtlIdentifierAuthoritySid (PSID Sid);
2094 NTSTATUS STDCALL RtlInitializeSid (PSID Sid, PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, UCHAR SubAuthorityCount);
2095 PULONG STDCALL RtlSubAuthoritySid (PSID Sid, ULONG SubAuthority);
2096 BOOLEAN STDCALL RtlEqualPrefixSid (PSID Sid1, PSID Sid2);
2097 BOOLEAN STDCALL RtlEqualSid(PSID Sid1, PSID Sid2);
2098 PSID STDCALL RtlFreeSid (PSID Sid);
2099 ULONG STDCALL RtlLengthSid (PSID Sid);
2100 PULONG STDCALL RtlSubAuthoritySid (PSID Sid, ULONG SubAuthority);
2101 PUCHAR STDCALL RtlSubAuthorityCountSid (PSID Sid);
2102 BOOLEAN STDCALL RtlValidSid (PSID Sid);
2103 NTSTATUS STDCALL RtlConvertSidToUnicodeString (PUNICODE_STRING String, PSID Sid, BOOLEAN AllocateBuffer);
2105 BOOLEAN STDCALL RtlAreAllAccessesGranted (ACCESS_MASK GrantedAccess, ACCESS_MASK DesiredAccess);
2106 BOOLEAN STDCALL RtlAreAnyAccessesGranted (ACCESS_MASK GrantedAccess, ACCESS_MASK DesiredAccess);
2107 VOID STDCALL RtlMapGenericMask (PACCESS_MASK AccessMask, PGENERIC_MAPPING GenericMapping);
2110 /* functions exported from NTOSKRNL.EXE which are considered RTL */
2112 #if defined(__NTOSKRNL__) || defined(__NTDRIVER__) || defined(__NTHAL__) || defined(__NTDLL__) || defined(__NTAPP__)
2114 char *_itoa (int value, char *string, int radix);
2115 int _snprintf(char * buf, size_t cnt, const char *fmt, ...);
2116 int _snwprintf(wchar_t *buf, size_t cnt, const wchar_t *fmt, ...);
2117 int _stricmp(const char *s1, const char *s2);
2118 char * _strlwr(char *x);
2119 int _strnicmp(const char *s1, const char *s2, size_t n);
2120 char * _strnset(char* szToFill, int szFill, size_t sizeMaxFill);
2121 char * _strrev(char *s);
2122 char * _strset(char* szToFill, int szFill);
2123 char * _strupr(char *x);
2124 int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args);
2125 int _wcsicmp (const wchar_t* cs, const wchar_t* ct);
2126 wchar_t * _wcslwr (wchar_t *x);
2127 int _wcsnicmp (const wchar_t * cs,const wchar_t * ct,size_t count);
2128 wchar_t* _wcsnset (wchar_t* wsToFill, wchar_t wcFill, size_t sizeMaxFill);
2129 wchar_t * _wcsrev(wchar_t *s);
2130 wchar_t *_wcsupr(wchar_t *x);
2132 int atoi(const char *str);
2133 long atol(const char *str);
2139 int isxdigit(int c);
2140 size_t mbstowcs (wchar_t *wcstr, const char *mbstr, size_t count);
2141 int mbtowc (wchar_t *wchar, const char *mbchar, size_t count);
2142 void * memchr(const void *s, int c, size_t n);
2143 void * memcpy(void *to, const void *from, size_t count);
2144 void * memmove(void *dest,const void *src, size_t count);
2145 void * memset(void *src, int val, size_t count);
2152 int sprintf(char * buf, const char *fmt, ...);
2153 void srand(unsigned seed);
2154 char * strcat(char *s, const char *append);
2155 char * strchr(const char *s, int c);
2156 int strcmp(const char *s1, const char *s2);
2157 char * strcpy(char *to, const char *from);
2158 size_t strlen(const char *str);
2159 char * strncat(char *dst, const char *src, size_t n);
2160 int strncmp(const char *s1, const char *s2, size_t n);
2161 char *strncpy(char *dst, const char *src, size_t n);
2162 char *strrchr(const char *s, int c);
2163 size_t strspn(const char *s1, const char *s2);
2164 char *strstr(const char *s, const char *find);
2165 int swprintf(wchar_t *buf, const wchar_t *fmt, ...);
2168 wchar_t towlower(wchar_t c);
2169 wchar_t towupper(wchar_t c);
2170 int vsprintf(char *buf, const char *fmt, va_list args);
2171 wchar_t * wcscat(wchar_t *dest, const wchar_t *src);
2172 wchar_t * wcschr(const wchar_t *str, wchar_t ch);
2173 int wcscmp(const wchar_t *cs, const wchar_t *ct);
2174 wchar_t* wcscpy(wchar_t* str1, const wchar_t* str2);
2175 size_t wcscspn(const wchar_t *str,const wchar_t *reject);
2176 size_t wcslen(const wchar_t *s);
2177 wchar_t * wcsncat(wchar_t *dest, const wchar_t *src, size_t count);
2178 int wcsncmp(const wchar_t *cs, const wchar_t *ct, size_t count);
2179 wchar_t * wcsncpy(wchar_t *dest, const wchar_t *src, size_t count);
2180 wchar_t * wcsrchr(const wchar_t *str, wchar_t ch);
2181 size_t wcsspn(const wchar_t *str,const wchar_t *accept);
2182 wchar_t *wcsstr(const wchar_t *s,const wchar_t *b);
2183 size_t wcstombs (char *mbstr, const wchar_t *wcstr, size_t count);
2184 int wctomb (char *mbchar, wchar_t wchar);
2186 #endif /* __NTOSKRNL__ || __NTDRIVER__ || __NTHAL__ || __NTDLL__ || __NTAPP__ */
2188 #endif /* __DDK_RTL_H */