RtlInitString function

Initializes a counted string.

Syntax


VOID WINAPI RtlInitString(
  _Inout_ PSTRING DestinationString,
  _In_    PCSZ    SourceString
);

Parameters

DestinationString [in, out]

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.

SourceString [in]

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

This function does not return a value.

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.

Note  RtlInitString is available in Windows XP. It might be altered or unavailable in subsequent versions.
 

Requirements

Header

Winternl.h

DLL

Ntdll.dll

 

 

Show: