Export (0) Print
Expand All
Expand Minimize

RTL_CONSTANT_STRING Macro

The RTL_CONSTANT_STRING macro creates a string or Unicode string structure to hold a counted string.

STRING RTL_CONSTANT_STRING(
  [in]  PCSZ SourceString
);

UNICODE_STRING RTL_CONSTANT_STRING(
  [in]  PCWSTR SourceString
);

Parameters

SourceString [in]

Pointer to a null-terminated string to initialize the counted string with.

Return Value

RTL_CONSTANT_STRING returns either a string structure or Unicode string structure.

Remarks

The RTL_CONSTANT_STRING macro replaces the RtlInitAnsiString, RtlInitString, and RtlInitUnicodeString routines when passing a constant string.

You can use RTL_CONSTANT_STRING to initialize global variables.

Requirements

Header

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

See also

RtlInitAnsiString
RtlInitString
RtlInitUnicodeString

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft