Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Use the UWP Sensor API instead.
The COM-based Sensor API is deprecated and should not be used in new applications. No additional features or enhancements are planned, and support will be limited.
Retrieves the current event interest settings.
Syntax
HRESULT GetEventInterest(
[out] GUID **ppValues,
[out] ULONG *pCount
);
Parameters
[out] ppValues
Address of a GUID pointer that points to an array of sensor event identifiers.
[out] pCount
The count of GUIDs in the array pointed to by ppValues.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
|
NULL was passed in for ppValues or pCount. |
Remarks
Each sensor event is represented by a GUID. This method returns the list of requested events as an array of GUIDs.
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 |