This method translates the source string from the specified code page to Unicode.
HRESULT ConvertStringToUnicode( DWORD* pdwMode, DWORD dwEncoding, CHAR* pSrcStr, UINT* pcSrcSize, WCHAR* pDstStr, UINT* pcDstSize );
[in, out] Address of storage for conversion context. A calling function should only provide storage that is initialized with zero at the first call to the method. The caller should not modify the value.
[in] Specifies the code page identifier value for the source multibyte string. This value is equivalent to the uiCodePage member of the MIMECPINFO structure assigned to the dwEncoding parameter.
[in] Pointer to the multibyte string that is to be converted.
[in, out] Pointer to the buffer that stores the length of the source string, in byte counts. If this is NULL, or if the length specified is -1, the method assumes that the string pointed to by the pSrcStr parameter is null-terminated. When the conversion is successful, the method returns the number of bytes processed to this buffer.
[in] Pointer to the string buffer where the conversion result is stored.
[in, out] Pointer to the buffer that stores the memory allocated for the string pointed to by the pDstStr parameter, in character counts. When the conversion is successful, the method returns to the buffer the number of characters copied to the string.