https://git.reactos.org/?p=reactos.git;a=commitdiff;h=522821bb8b8b17cdfc03766b64b99465ac6ceeb8

commit 522821bb8b8b17cdfc03766b64b99465ac6ceeb8
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Thu Jun 20 08:56:05 2019 +0200
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Sun Jun 30 23:07:54 2019 +0200

    [SDK] Add RtlInitString to the NDK
---
 sdk/include/ndk/rtlfuncs.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/sdk/include/ndk/rtlfuncs.h b/sdk/include/ndk/rtlfuncs.h
index 8f5cdf07e5a..60cac48dc59 100644
--- a/sdk/include/ndk/rtlfuncs.h
+++ b/sdk/include/ndk/rtlfuncs.h
@@ -2201,6 +2201,22 @@ RtlHashUnicodeString(
     _Out_ PULONG HashValue
 );
 
+_IRQL_requires_max_(DISPATCH_LEVEL)
+_At_(DestinationString->Buffer, _Post_equal_to_(SourceString))
+_When_(SourceString != NULL,
+_At_(DestinationString->Length, _Post_equal_to_(_String_length_(SourceString)))
+_At_(DestinationString->MaximumLength, 
_Post_equal_to_(DestinationString->Length + sizeof(CHAR))))
+_When_(SourceString == NULL,
+_At_(DestinationString->Length, _Post_equal_to_(0))
+_At_(DestinationString->MaximumLength, _Post_equal_to_(0)))
+NTSYSAPI
+VOID
+NTAPI
+RtlInitString(
+    _Out_ PSTRING DestinationString,
+    _In_opt_z_ __drv_aliasesMem PCSTR SourceString
+);
+
 _IRQL_requires_max_(DISPATCH_LEVEL)
 _At_(DestinationString->Buffer, _Post_equal_to_(SourceString))
 _When_(SourceString != NULL,

Reply via email to