PropVariantCopy function

Creates a copy of a PROPVARIANT structure.

Syntax

HRESULT PropVariantCopy(
  PROPVARIANT       *pvarDest,
  const PROPVARIANT *pvarSrc
);

Parameters

pvarDest

Type: PROPVARIANT*

Pointer to the destination PROPVARIANT structure that receives the copy.

pvarSrc

Type: const PROPVARIANT*

Pointer to the source PROPVARIANT structure.

Return Value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 with SP1 [desktop apps | UWP apps]
Target Platform Windows
Header propidl.h
Library Ole32.lib
DLL Ole32.dll (version 6.0 or later)
Redistributable Windows Desktop Search (WDS) 3.0