PropKeyFindKeySetPropVariant function (sensorsutils.h)

This routine finds and sets the PROPVARIANT within a collection list based on the PROPERTYKEY.

Syntax

NTSTATUS PropKeyFindKeySetPropVariant(
  SENSOR_COLLECTION_LIST *pList,
  const PROPERTYKEY      *pKey,
  BOOLEAN                TypeCheck,
  PROPVARIANT            *pValue
);

Parameters

pList

[in] Pointer to the list of PROPVARIANT collection.

pKey

[in] Pointer to a PROPERTYKEY for the target PROPVARIANT.

TypeCheck

[in] If TRUE, the function validates whether a pValue type matches one of the value types found in pList.

pValue

[in] Pointer to the target PROPVARIANT.

Return value

This function returns one of the following NTSTATUS codes:

  • STATUS_INVALID_PARAMETER if pList, pKey or, pValue is nullptr.
  • STATUS_NOT_FOUND if the element associated with the propertyKey was not found.
  • STATUS_SUCCESS on success.

Requirements

   
Header sensorsutils.h