Skip to content

Latest commit

 

History

History
114 lines (80 loc) · 3.56 KB

nf-propvarutil-initpropvariantfromuint64vector.md

File metadata and controls

114 lines (80 loc) · 3.56 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.InitPropVariantFromUInt64Vector
InitPropVariantFromUInt64Vector function (propvarutil.h)
Initializes a PROPVARIANT structure based on a vector of 64-bit unsigned integers.
InitPropVariantFromUInt64Vector
InitPropVariantFromUInt64Vector function [Windows Properties]
properties.InitPropVariantFromUInt64Vector
propvarutil/InitPropVariantFromUInt64Vector
shell.InitPropVariantFromUInt64Vector
shell_InitPropVariantFromUInt64Vector
properties\InitPropVariantFromUInt64Vector.htm
properties
17c52a7d-c3d3-4132-8f44-7d0b250aa7ad
12/05/2018
InitPropVariantFromUInt64Vector, InitPropVariantFromUInt64Vector function [Windows Properties], properties.InitPropVariantFromUInt64Vector, propvarutil/InitPropVariantFromUInt64Vector, shell.InitPropVariantFromUInt64Vector, shell_InitPropVariantFromUInt64Vector
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
InitPropVariantFromUInt64Vector
propvarutil/InitPropVariantFromUInt64Vector
c++
APIRef
kbSyntax
DllExport
Propsys.dll
InitPropVariantFromUInt64Vector

InitPropVariantFromUInt64Vector function

-description

Initializes a PROPVARIANT structure based on a vector of 64-bit unsigned integers.

-parameters

-param prgn [in]

Type: const ULONGLONG*

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

-param cElems [in]

Type: ULONG

Number of elements in the vector pointed to by prgn.

-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_UI8 propvariant.

Examples

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

ULONGLONG rgLongs[] = {4, 7};
PROPVARIANT propvar;

HRESULT hr = InitPropVariantFromUInt32Vector(rgLongs, ARRAYSIZE(rgLongs), &propvar);

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

-see-also

InitPropVariantFromUInt64

InitVariantFromUInt64Array

PropVariantToUInt64Vector