Converts a string to a VARIANT structure.
Syntax
HRESULT GetVariantForString( LPCOLESTR pwstrValue, VARIANT *pvar );
Parameters
- pwstrValue
- [in] Address of a string to be converted to a VARIANT structure.
- pvar
- [out] Address of a VARIANT structure that contains the converted string.
Return Value
Returns S_OK if successful, or an error code otherwise.