Hardware Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

RtlInitEmptyAnsiString macro

The RtlInitEmptyAnsiString macro initializes an empty counted ANSI string.

Syntax


VOID RtlInitEmptyAnsiString(
  [out] PANSI_STRING DestinationString,
  [in]  PCHAR        Buffer,
  [in]  USHORT       BufferSize
);

Parameters

DestinationString [out]

Pointer to the ANSI_STRING structure to be initialized.

Buffer [in]

Pointer to a caller-allocated buffer to be used to contain a WCHAR string.

BufferSize [in]

Length, in bytes, of the buffer that Buffer points to.

Return value

None.

Remarks

The members of the structure that the DestinationString parameter points to are initialized as follows.

MemberValue

Length

Zero

MaximumLength

BufferSize

Buffer

SourceString

 

To initialize a non-empty counted Unicode string, call RtlInitAnsiString.

Requirements

Target platform

Desktop

Version

Available in Microsoft Windows XP and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

IRQL

Any level

See also

ANSI_STRING
RtlInitAnsiString

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft