0 out of 2 rated this helpful - Rate this topic

RtlInitString function

Applies to: desktop apps only

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

 

 

Build date: 4/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ