Expand Minimize

VariantToPropVariant function

Copies the contents of a VARIANT structure to a PROPVARIANT structure.

Syntax


HRESULT VariantToPropVariant(
  _In_   const VARIANT *pVar,
  _Out_  PROPVARIANT *pPropVar
);

Parameters

pVar [in]

Type: const VARIANT*

Pointer to a source VARIANT structure.

pPropVar [out]

Type: PROPVARIANT*

Pointer to a PROPVARIANT structure. When this function returns, the PROPVARIANT contains the converted information.

Return value

Type: HRESULT

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

Remarks

The following cannot be handled by this function.

  • VT_BYREF | VT_DATE
  • VT_BYREF | VT_BSTR
  • VT_BYREF | VT_UNKNOWN

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Redistributable

Windows Desktop Search (WDS) 3.0

Header

Propvarutil.h

Library

Propsys.lib

DLL

Propsys.dll (version 6.0 or later)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft