VariantToFileTime function

Extracts a FILETIME structure from a variant structure.

Syntax


HRESULT VariantToFileTime(
  _In_  REFVARIANT   varIn,
  _In_  PSTIME_FLAGS stfOut,
  _Out_ FILETIME     *pftOut
);

Parameters

varIn [in]

Type: REFVARIANT

Reference to a source variant structure.

stfOut [in]

Type: PSTIME_FLAGS

Specifies one of the following time flags:

PSTF_UTC (0)

Indicates coordinated universal time.

PSTF_LOCAL (1)

Indicates local time.

pftOut [out]

Type: FILETIME*

Pointer to the extracted FILETIME structure.

Return value

Type: HRESULT

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

Remarks

stfOut flags override any property description flags.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [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)

 

 

Show: