- Correct prototypes and annotations and add missing declarations for Rtl string functions
svn path=/trunk/; revision=60868
NTAPI
RtlUpperString(
_Inout_ PSTRING DestinationString,
- _In_ const PSTRING SourceString);
+ _In_ const STRING *SourceString);
_IRQL_requires_max_(PASSIVE_LEVEL)
_When_(AllocateDestinationString, _Must_inspect_result_)
LONG
NTAPI
RtlCompareString(
- _In_ const PSTRING String1,
- _In_ const PSTRING String2,
+ _In_ const STRING *String1,
+ _In_ const STRING *String2,
_In_ BOOLEAN CaseInSensitive);
NTSYSAPI
NTAPI
RtlCopyString(
_Out_ PSTRING DestinationString,
- _In_opt_ const PSTRING SourceString);
+ _In_opt_ const STRING *SourceString);
_IRQL_requires_max_(PASSIVE_LEVEL)
_Must_inspect_result_
BOOLEAN
NTAPI
RtlEqualString(
- _In_ const PSTRING String1,
- _In_ const PSTRING String2,
+ _In_ const STRING *String1,
+ _In_ const STRING *String2,
_In_ BOOLEAN CaseInSensitive);
_IRQL_requires_max_(PASSIVE_LEVEL)
PUNICODE_STRING DestinationString,
_In_z_ PCWSTR SourceString);
+_IRQL_requires_max_(PASSIVE_LEVEL)
+_Must_inspect_result_
+NTSYSAPI
+BOOLEAN
+NTAPI
+RtlPrefixString(
+ _In_ const STRING *String1,
+ _In_ const STRING *String2,
+ _In_ BOOLEAN CaseInsensitive);
+
_IRQL_requires_max_(APC_LEVEL)
NTSYSAPI
NTSTATUS
INT *Flags
);
+_IRQL_requires_max_(PASSIVE_LEVEL)
+_Must_inspect_result_
NTSYSAPI
BOOLEAN
NTAPI
RtlPrefixString(
- PSTRING String1,
- PSTRING String2,
- BOOLEAN CaseInsensitive
+ _In_ const STRING *String1,
+ _In_ const STRING *String2,
+ _In_ BOOLEAN CaseInsensitive
);
+_IRQL_requires_max_(PASSIVE_LEVEL)
+_Must_inspect_result_
NTSYSAPI
BOOLEAN
NTAPI
RtlPrefixUnicodeString(
- PCUNICODE_STRING String1,
- PCUNICODE_STRING String2,
- BOOLEAN CaseInsensitive
+ _In_ PCUNICODE_STRING String1,
+ _In_ PCUNICODE_STRING String2,
+ _In_ BOOLEAN CaseInsensitive
+);
+
+_IRQL_requires_max_(PASSIVE_LEVEL)
+NTSYSAPI
+VOID
+NTAPI
+RtlUpperString(
+ _Inout_ PSTRING DestinationString,
+ _In_ const STRING *SourceString
+);
+
+_IRQL_requires_max_(PASSIVE_LEVEL)
+_Must_inspect_result_
+NTSYSAPI
+LONG
+NTAPI
+RtlCompareString(
+ _In_ const STRING *String1,
+ _In_ const STRING *String2,
+ _In_ BOOLEAN CaseInSensitive
+);
+
+NTSYSAPI
+VOID
+NTAPI
+RtlCopyString(
+ _Out_ PSTRING DestinationString,
+ _In_opt_ const STRING *SourceString
+);
+
+_IRQL_requires_max_(PASSIVE_LEVEL)
+_Must_inspect_result_
+NTSYSAPI
+BOOLEAN
+NTAPI
+RtlEqualString(
+ _In_ const STRING *String1,
+ _In_ const STRING *String2,
+ _In_ BOOLEAN CaseInSensitive
+);
+
+_IRQL_requires_max_(APC_LEVEL)
+NTSYSAPI
+NTSTATUS
+NTAPI
+RtlAppendStringToString(
+ _Inout_ PSTRING Destination,
+ _In_ const STRING *Source
);
_IRQL_requires_max_(PASSIVE_LEVEL)
PUNICODE_STRING DestinationString,
_In_ PCUNICODE_STRING SourceString,
_In_ BOOLEAN AllocateDestinationString
- );
+);
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSYSAPI
NTSTATUS
NTAPI
RtlAppendStringToString(IN PSTRING Destination,
- IN PSTRING Source)
+ IN const STRING *Source)
{
USHORT SourceLength = Source->Length;
LONG
NTAPI
RtlCompareString(
- IN PSTRING s1,
- IN PSTRING s2,
+ IN const STRING *s1,
+ IN const STRING *s2,
IN BOOLEAN CaseInsensitive)
{
unsigned int len;
BOOLEAN
NTAPI
RtlEqualString(
- IN PSTRING s1,
- IN PSTRING s2,
+ IN const STRING *s1,
+ IN const STRING *s2,
IN BOOLEAN CaseInsensitive)
{
if (s1->Length != s2->Length) return FALSE;
BOOLEAN
NTAPI
RtlPrefixString(
- PSTRING String1,
- PSTRING String2,
+ const STRING *String1,
+ const STRING *String2,
BOOLEAN CaseInsensitive)
{
PCHAR pc1;
NTAPI
RtlCopyString(
IN OUT PSTRING DestinationString,
- IN PSTRING SourceString OPTIONAL)
+ IN const STRING *SourceString OPTIONAL)
{
ULONG SourceLength;
PCHAR p1, p2;
VOID
NTAPI
RtlUpperString(PSTRING DestinationString,
- PSTRING SourceString)
+ const STRING *SourceString)
{
USHORT Length;
PCHAR Src, Dest;