mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[NDK][DDK][RTL]
- Correct prototypes and annotations and add missing declarations for Rtl string functions svn path=/trunk/; revision=60868
This commit is contained in:
parent
a9c4683b20
commit
4d7a522726
4 changed files with 84 additions and 22 deletions
|
@ -4993,7 +4993,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlUpperString(
|
RtlUpperString(
|
||||||
_Inout_ PSTRING DestinationString,
|
_Inout_ PSTRING DestinationString,
|
||||||
_In_ const PSTRING SourceString);
|
_In_ const STRING *SourceString);
|
||||||
|
|
||||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||||
_When_(AllocateDestinationString, _Must_inspect_result_)
|
_When_(AllocateDestinationString, _Must_inspect_result_)
|
||||||
|
@ -5029,8 +5029,8 @@ NTSYSAPI
|
||||||
LONG
|
LONG
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlCompareString(
|
RtlCompareString(
|
||||||
_In_ const PSTRING String1,
|
_In_ const STRING *String1,
|
||||||
_In_ const PSTRING String2,
|
_In_ const STRING *String2,
|
||||||
_In_ BOOLEAN CaseInSensitive);
|
_In_ BOOLEAN CaseInSensitive);
|
||||||
|
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
|
@ -5038,7 +5038,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlCopyString(
|
RtlCopyString(
|
||||||
_Out_ PSTRING DestinationString,
|
_Out_ PSTRING DestinationString,
|
||||||
_In_opt_ const PSTRING SourceString);
|
_In_opt_ const STRING *SourceString);
|
||||||
|
|
||||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||||
_Must_inspect_result_
|
_Must_inspect_result_
|
||||||
|
@ -5046,8 +5046,8 @@ NTSYSAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlEqualString(
|
RtlEqualString(
|
||||||
_In_ const PSTRING String1,
|
_In_ const STRING *String1,
|
||||||
_In_ const PSTRING String2,
|
_In_ const STRING *String2,
|
||||||
_In_ BOOLEAN CaseInSensitive);
|
_In_ BOOLEAN CaseInSensitive);
|
||||||
|
|
||||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||||
|
|
|
@ -1006,6 +1006,16 @@ RtlCreateUnicodeString(
|
||||||
PUNICODE_STRING DestinationString,
|
PUNICODE_STRING DestinationString,
|
||||||
_In_z_ PCWSTR SourceString);
|
_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)
|
_IRQL_requires_max_(APC_LEVEL)
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
|
@ -2161,22 +2161,74 @@ RtlIsTextUnicode(
|
||||||
INT *Flags
|
INT *Flags
|
||||||
);
|
);
|
||||||
|
|
||||||
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||||
|
_Must_inspect_result_
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlPrefixString(
|
RtlPrefixString(
|
||||||
PSTRING String1,
|
_In_ const STRING *String1,
|
||||||
PSTRING String2,
|
_In_ const STRING *String2,
|
||||||
BOOLEAN CaseInsensitive
|
_In_ BOOLEAN CaseInsensitive
|
||||||
);
|
);
|
||||||
|
|
||||||
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||||
|
_Must_inspect_result_
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlPrefixUnicodeString(
|
RtlPrefixUnicodeString(
|
||||||
PCUNICODE_STRING String1,
|
_In_ PCUNICODE_STRING String1,
|
||||||
PCUNICODE_STRING String2,
|
_In_ PCUNICODE_STRING String2,
|
||||||
BOOLEAN CaseInsensitive
|
_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)
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||||
|
@ -2190,7 +2242,7 @@ RtlUpcaseUnicodeString(
|
||||||
PUNICODE_STRING DestinationString,
|
PUNICODE_STRING DestinationString,
|
||||||
_In_ PCUNICODE_STRING SourceString,
|
_In_ PCUNICODE_STRING SourceString,
|
||||||
_In_ BOOLEAN AllocateDestinationString
|
_In_ BOOLEAN AllocateDestinationString
|
||||||
);
|
);
|
||||||
|
|
||||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
|
|
|
@ -173,7 +173,7 @@ RtlxAnsiStringToUnicodeSize(IN PCANSI_STRING AnsiString)
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlAppendStringToString(IN PSTRING Destination,
|
RtlAppendStringToString(IN PSTRING Destination,
|
||||||
IN PSTRING Source)
|
IN const STRING *Source)
|
||||||
{
|
{
|
||||||
USHORT SourceLength = Source->Length;
|
USHORT SourceLength = Source->Length;
|
||||||
|
|
||||||
|
@ -346,8 +346,8 @@ RtlCharToInteger(
|
||||||
LONG
|
LONG
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlCompareString(
|
RtlCompareString(
|
||||||
IN PSTRING s1,
|
IN const STRING *s1,
|
||||||
IN PSTRING s2,
|
IN const STRING *s2,
|
||||||
IN BOOLEAN CaseInsensitive)
|
IN BOOLEAN CaseInsensitive)
|
||||||
{
|
{
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
|
@ -382,8 +382,8 @@ RtlCompareString(
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlEqualString(
|
RtlEqualString(
|
||||||
IN PSTRING s1,
|
IN const STRING *s1,
|
||||||
IN PSTRING s2,
|
IN const STRING *s2,
|
||||||
IN BOOLEAN CaseInsensitive)
|
IN BOOLEAN CaseInsensitive)
|
||||||
{
|
{
|
||||||
if (s1->Length != s2->Length) return FALSE;
|
if (s1->Length != s2->Length) return FALSE;
|
||||||
|
@ -835,8 +835,8 @@ RtlInt64ToUnicodeString (
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlPrefixString(
|
RtlPrefixString(
|
||||||
PSTRING String1,
|
const STRING *String1,
|
||||||
PSTRING String2,
|
const STRING *String2,
|
||||||
BOOLEAN CaseInsensitive)
|
BOOLEAN CaseInsensitive)
|
||||||
{
|
{
|
||||||
PCHAR pc1;
|
PCHAR pc1;
|
||||||
|
@ -2115,7 +2115,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlCopyString(
|
RtlCopyString(
|
||||||
IN OUT PSTRING DestinationString,
|
IN OUT PSTRING DestinationString,
|
||||||
IN PSTRING SourceString OPTIONAL)
|
IN const STRING *SourceString OPTIONAL)
|
||||||
{
|
{
|
||||||
ULONG SourceLength;
|
ULONG SourceLength;
|
||||||
PCHAR p1, p2;
|
PCHAR p1, p2;
|
||||||
|
@ -2362,7 +2362,7 @@ RtlAppendAsciizToString(
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlUpperString(PSTRING DestinationString,
|
RtlUpperString(PSTRING DestinationString,
|
||||||
PSTRING SourceString)
|
const STRING *SourceString)
|
||||||
{
|
{
|
||||||
USHORT Length;
|
USHORT Length;
|
||||||
PCHAR Src, Dest;
|
PCHAR Src, Dest;
|
||||||
|
|
Loading…
Reference in a new issue