Help Center

DVARIANT.PutStrRetmethod

Initializes DVARIANT with string stored in a STRRET structure.

COMmethodDVARIANT.INCdocumented

Syntax

FUNCTION PutStrRet (BYVAL pstrret AS STRRET PTR, BYVAL pidl AS PCUITEMID_CHILD) AS HRESULT

Parameters

NameDescription
pstrretPointer to a STRRET structure.
pidlPIDL 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