DVARIANT.PutStrRetmethod
Initializes DVARIANT with string stored in a STRRET structure.
Syntax
FUNCTION PutStrRet (BYVAL pstrret AS STRRET PTR, BYVAL pidl AS PCUITEMID_CHILD) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
pstrret | Pointer to a STRRET structure. | |
pidl | PIDL of the item whose details are being retrieved. |
Return value
If this function succeeds, it returns S_OK (0). Otherwise, it returns an HRESULT error code.
Description
Initializes DVARIANT with the string stored in a STRRET structure.
Remarks
Creates a VT_BSTR variant. This function frees the resources used for the STRRET contents.
Reference
- Include file
DVARIANT.INC - Defined in AfxNova/DVARIANT.inc:1402
- Documented in COM/DVARIANT Class.md
- Topic: DVARIANT Class