Skip to content

Latest commit

 

History

History
115 lines (80 loc) · 3.42 KB

nf-propvarutil-initpropvariantfromint64vector.md

File metadata and controls

115 lines (80 loc) · 3.42 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:propvarutil.InitPropVariantFromInt64Vector
InitPropVariantFromInt64Vector function (propvarutil.h)
Initializes a PROPVARIANT structure based on a vector of Int64 values.
InitPropVariantFromInt64Vector
InitPropVariantFromInt64Vector function [Windows Properties]
properties.InitPropVariantFromInt64Vector
propvarutil/InitPropVariantFromInt64Vector
shell.InitPropVariantFromInt64Vector
shell_InitPropVariantFromInt64Vector
properties\InitPropVariantFromInt64Vector.htm
properties
a2375776-ba9e-4d59-8924-86ac087b99d7
12/05/2018
InitPropVariantFromInt64Vector, InitPropVariantFromInt64Vector function [Windows Properties], properties.InitPropVariantFromInt64Vector, propvarutil/InitPropVariantFromInt64Vector, shell.InitPropVariantFromInt64Vector, shell_InitPropVariantFromInt64Vector
propvarutil.h
Windows
Windows XP with SP2, Windows Vista [desktop apps only]
Windows Server 2003 with SP1 [desktop apps only]
Propsys.lib
Propsys.dll (version 6.0 or later)
Windows
Windows Desktop Search (WDS) 3.0
19H1
InitPropVariantFromInt64Vector
propvarutil/InitPropVariantFromInt64Vector
c++
APIRef
kbSyntax
DllExport
Propsys.dll
InitPropVariantFromInt64Vector

InitPropVariantFromInt64Vector function

-description

Initializes a PROPVARIANT structure based on a vector of Int64 values.

-parameters

-param prgn [in]

Type: const LONGLONG*

Pointer to a source vector of LONGLONG values. If this parameter is NULL, the vector is initialized with zeros.

-param cElems [in]

Type: ULONG

The number of elements in the vector.

-param ppropvar [out]

Type: PROPVARIANT*

When this function returns, contains the initialized PROPVARIANT structure.

-returns

Type: HRESULT

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

-remarks

Creates a VT_VECTOR | VT_I8 propvariant.

Examples

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

LONGLONG rgLongLongs[] = {4, 7};
PROPVARIANT propvar;

HRESULT hr = InitPropVariantFromInt64Vector(rgLongLongs, ARRAYSIZE(rgLongLongs), &propvar);

if (SUCCEEDED(hr))
{
    // propvar now is valid and has type VT_VECTOR | VT_I8.
 
    PropVariantClear(&propvar);
}

-see-also

InitPropVariantFromInt64

InitVariantFromInt64

PropVariantToInt64Vector