Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ClearPropVariantArray function

Frees the memory and references used by an array of PROPVARIANT structures stored in an array.

Syntax


VOID ClearPropVariantArray(
  _In_ PROPVARIANT *rgPropVar,
  _In_ UINT        cVars
);

Parameters

rgPropVar [in]

Type: PROPVARIANT*

Array of PROPVARIANT structures to free.

cVars [in]

Type: UINT

The number of elements in the array specified by rgPropVar.

Return value

No return value.

Remarks

This function releases the memory and references held by each structure in the array before setting the structures to zero.

This function performs the same action as FreePropVariantArray, but FreePropVariantArray returns an HRESULT.

Examples

The following example, to be included as part of a larger program, demonstrates how to use ClearPropVariantArray


// PROPVARIANT rgpropvar[5];
// Assume all 5 propvariants are initialized and valid.

ClearPropVariantArray(rgpropvar, ARRAYSIZE(rgpropvar));

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)

See also

ClearVariantArray

 

 

Show:
© 2017 Microsoft