The WdmlibRtlInitUnicodeStringEx function initializes a counted string of Unicode characters.
NTSTATUS WdmlibRtlInitUnicodeStringEx( PUNICODE_STRING DestinationString, PCWSTR SourceString );
A pointer to the UNICODE_STRING structure to be initialized.
A pointer to a null-terminated wide-character string. This string is used to initialize the counted string pointed to by DestinationString.
The routine copies the SourceString pointer value to the Buffer member of the UNICODE_STRING structure pointed to by DestinationString. The Length member of this structure is set to the length, in bytes, of the source string, excluding the terminating null. The MaximumLength member of the structure is set to the length, in bytes, of the source string, including the terminating null. If SourceString is NULL, Length and MaximumLength are both set to zero.
WdmlibRtlInitUnicodeStringEx does not alter the source string pointed to by SourceString.
|Minimum supported client||Available starting with Windows 2000.|
|Header||wdmsec.h (include Wdmsec.h, Wdm.h, Ntddk.h, Ntifs.h)|
|IRQL||See Remarks section.|