RtlInitEmptyUnicodeString宏用来初始化一个空的counted Unicode字符串。要想初始化一个非空的counted Unicode字符串,则可以使用RtlInitUnicodeString。
VOID
RtlInitEmptyUnicodeString(
IN OUT PUNICODE_STRING DestinationString,
IN PCWSTR Buffer,
IN USHORT BufferSize
);
-
Parameters
DestinationString
- Pointer to the UNICODE_STRING structure to be initialized. Buffer
- Pointer to a caller-allocated buffer to be used to contain a WCHAR string. BufferSize
- Length, in bytes, of the buffer that Buffer points to.
Return Value
无