Bewerken

Delen via


InitPropVariantFromCLSIDArray function (sensorsutils.h)

This routine initializes a PROPVARIANT from a given array of GUIDs. The routine takes care of allocating memory for the CLSID array using CoTaskMemAlloc.

Syntax

HRESULT InitPropVariantFromCLSIDArray(
  [in]  GUID        *members,
  [in]  ULONG       size,
  [out] PROPVARIANT *ppropvar
);

Parameters

[in] members

Array of GUIDs to initialize PROPVARIANT value.

[in] size

Size of array of GUIDs being sent in.

[out] ppropvar

Pointer to a PROPVARIANT.

Return value

This function returns S_OK if the PROPVARIANT was properly initialized, E_OUTOFMEMORY if there was not enough memory to allocate the CLSID array in ppropvar.

Requirements

Requirement Value
Header sensorsutils.h