PropKeyFindKeyGetDouble function (sensorsutils.h)

This routine gets a double precision floating point value from a PROPVARIANT within a collection list based on the PROPERTYKEY.

Syntax

NTSTATUS PropKeyFindKeyGetDouble(
  [in]  const SENSOR_COLLECTION_LIST *pList,
  [in]  const PROPERTYKEY            *pKey,
  [out] double                       *pRetValue
);

Parameters

[in] pList

Pointer to the list of PROPVARIANT collection.

[in] pKey

Pointer to a PROPERTYKEY for the target PROPVARIANT.

[out] pRetValue

Pointer to a PROPERTYKEY for the target PROPVARIANT.

Return value

This function returns an NTSTATUS code that represents:

  • STATUS_INVALID_PARAMETER if pList, pKey or, pRetValue is nullptr.
  • STATUS_NOT_FOUND if the element identified by pKey was not found.
  • STATUS_SUCCESS if the function was successful.

Requirements

Requirement Value
Header sensorsutils.h