RtlInitString function (winternl.h)
Initializes a counted string.
Syntax
void RtlInitString(
[in, out] PSTRING DestinationString,
[in] PCSZ SourceString
);
Parameters
[in, out] DestinationString
The counted string to be initialized. The DestinationString is initialized to point to the SourceString. The Length and MaximumLength fields of the DestinationString are initialized to the length of the SourceString.
[in] SourceString
A pointer to a null-terminated string. If the SourceString is not specified, the Length and MaximumLength fields of the DestinationString are initialized to zero.
Return value
None
Remarks
Security Warning: Do not allow the SourceString parameter size to exceed MAX_USHORT characters.
Because there is no import library for this function, you must use GetProcAddress.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | winternl.h |
Library | ntdll.lib |
DLL | ntdll.dll |