Skip to content

Latest commit

 

History

History
127 lines (106 loc) · 2.93 KB

nf-sensorsapi-isensormanager-getsensorbyid.md

File metadata and controls

127 lines (106 loc) · 2.93 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:sensorsapi.ISensorManager.GetSensorByID
ISensorManager::GetSensorByID (sensorsapi.h)
Retrieves a pointer to the specified sensor.
GetSensorByID
GetSensorByID method
GetSensorByID method
ISensorManager interface
ISensorManager interface
GetSensorByID method
ISensorManager.GetSensorByID
ISensorManager::GetSensorByID
sensorsapi/ISensorManager::GetSensorByID
winsensors_com_ref.isensormanager_getsensorbyid
winsensors_com_ref\isensormanager_getsensorbyid.htm
winsensors
453f46f3-43e1-466d-9f46-165b7d2bcd56
12/05/2018
GetSensorByID, GetSensorByID method, GetSensorByID method,ISensorManager interface, ISensorManager interface,GetSensorByID method, ISensorManager.GetSensorByID, ISensorManager::GetSensorByID, sensorsapi/ISensorManager::GetSensorByID, winsensors_com_ref.isensormanager_getsensorbyid
sensorsapi.h
Windows
Windows 7 [desktop apps only]
None supported
Sensorsapi.lib
Sensorsapi.dll
Windows
19H1
ISensorManager::GetSensorByID
sensorsapi/ISensorManager::GetSensorByID
c++
APIRef
kbSyntax
COM
sensorsapi.dll
ISensorManager.GetSensorByID

ISensorManager::GetSensorByID

-description

Retrieves a pointer to the specified sensor.

-parameters

-param sensorID [in]

The ID of the sensor to retrieve.

-param ppSensor [out]

Address of an ISensor interface pointer that receives a pointer to the requested sensor. Will be NULL if the requested sensor cannot be found.

-returns

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_UNEXPECTED
The sensor manager found more than one sensor with the same ID.
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
No sensor is available for the specified ID.
E_POINTER
NULL was passed in for ppSensor.

-see-also

ISensorManager

Retrieving a Sensor Object