A2BSTR


Convert ANSI characters to UNICODE characters by specified code page.

BSTR WINAPI
A2BSTR(
	LPCSTR     lpszSrc,
	INT        nCodePage 
)	

Parameters

lpszSrc[in]

Pointer of the string to be converted.

nCodePage[in]

Specifies the code page to be used to perform the conversion. This parameter can be the value of any code page that is installed or available in the system.

Return Value

This function returns the UNICODE string converted. You should use SysFreeString function to free the return value if it is no longer needed.