BSTR2A


Convert UNICODE characters to ANSI characters by specified code page.

LPSTR  WINAPI
BSTR2A(
	BSTR       bstr,
	INT        nCodePage
)

Parameters

bstr[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 ANSI string converted. You should use LocalFree function to free the return value if it is no longer needed.