Returns a VARIANT containing the given string.

HRESULT GetVariantForString(
   LPCOLESTR  pwstrValue,
   VARIANT*   pvar
);

Parameters

pwstrValue

[in] String to store in a VARIANT.

pvar

[out] VARIANT containing pwstrValue.

Expand imageReturn Value

Expand imageRemarks

Expand imageSee Also