ISensorDriver::OnGetSupportedSensorObjects method (sensorsclassextension.h)

The ISensorDriver::OnGetSupportedSensorObjects method retrieves the list of sensors that the driver provides.

Syntax

HRESULT OnGetSupportedSensorObjects(
  IPortableDeviceValuesCollection **ppSensorObjectCollection
);

Parameters

ppSensorObjectCollection

Address of an IPortableDeviceValuesCollection pointer that receives the list of sensors.

Return value

If the operation succeeds, this method returns S_OK. Otherwise, this method returns one of the error codes that are defined in Winerror.h.

Requirements

Requirement Value
Target Platform Windows
Header sensorsclassextension.h
Library SensorsClassExtension.lib

See also

ISensorDriver