ISensor::SetEventInterest method (sensorsapi.h)
Specifies the list of sensor events to receive.
HRESULT SetEventInterest( [in] GUID *pValues, [in] ULONG count );
Pointer to an array of GUIDs. Each GUID represents an event to receive. Set to NULL to receive all data-updated events and all custom events.
The count of GUIDs in the array pointed to by pValues. Set to zero when pValues is NULL.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded.|
Each sensor event is represented by a GUID. This method takes, as an array of GUIDs, the list of events that you want to receive.
For an example of how to set event interest, see Using Sensor API Events.
|Minimum supported client||Windows 7 [desktop apps only]|
|Minimum supported server||None supported|