ISensorCollection::GetAt method (sensorsapi.h)

Retrieves the sensor at the specified index in the collection.

Syntax

HRESULT GetAt(
  [in]  ULONG   ulIndex,
  [out] ISensor **ppSensor
);

Parameters

[in] ulIndex

ULONG containing the index of the sensor to retrieve.

[out] ppSensor

Address of an ISensor pointer that receives the pointer to the specified sensor.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
NULL was passed in for ppSensor.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header sensorsapi.h
Library Sensorsapi.lib
DLL Sensorsapi.dll

See also

ISensorCollection