Converts a C-String to a UNICODE_STRING structure
Syntax
BOOL WINAPI Basep8BitStringToDynamicUnicodeString (
PUNICODE_STRING pConvertedStr,
LPCSTR pszAnsiStr
)
Parameters
- pConvertedStr
- Pointer to the buffer that receives the resulting string
- pszAnsiStr
- The string to convert
Return Value
Non-zero if the conversion is successful, zero otherwise. More information is available via GetLastError()
Remarks
On success, pConvertedStr must be freed with RtlFreeUnicodeString
The conversion is done by RtlAnsiStringToUnicodeString