SensorsCxDeviceGetSensorList function (sensorscx.h)

This function returns a list of sensor instances associated with a WDFDEVICE.

Syntax

NTSTATUS SensorsCxDeviceGetSensorList(
  [in]      WDFDEVICE    FxDevice,
  [out]     SENSOROBJECT *pSensorList,
  [in, out] PULONG       pListCount
);

Parameters

[in] FxDevice

A WDFDEVICE handle to the framework device object that represents the sensor.

[out] pSensorList

A list of sensor instances.

[in, out] pListCount

The number of SENSOROBJECTS in pSensorInstanceList.

Return value

This function returns NTSTATUS with different values. Some values that may be returned are the following:

  • STATUS_SUCCESS is returned if the function completes successfully.
  • STATUS_INVALID_PARAMETER is returned if any of the _In_ parameters are NULL.
  • STATUS_NOT_FOUND is returned if the controller is not available from the FxDevice.

Requirements

Requirement Value
Target Platform Desktop
Header sensorscx.h