Returns a VARIANT containing the given string.
HRESULT GetVariantForString( LPCOLESTR pwstrValue, VARIANT* pvar );
- pwstrValue
[in] String to store in a VARIANT.
- pvar
[out] VARIANT containing pwstrValue.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Value | Description |
---|---|
S_OK | The method succeeded. |
This method returns a VARIANT containing the given string.