Skip to content

Latest commit

 

History

History
100 lines (76 loc) · 3.52 KB

nf-sensorsclassextension-isensordriver-onclientunsubscribefromevents.md

File metadata and controls

100 lines (76 loc) · 3.52 KB
UID title description old-location tech.root ms.date keywords 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 f1_keywords topic_type api_type api_location api_name
NF:sensorsclassextension.ISensorDriver.OnClientUnsubscribeFromEvents
ISensorDriver::OnClientUnsubscribeFromEvents (sensorsclassextension.h)
The ISensorDriver::OnClientUnsubscribeFromEvents method notifies the sensor driver that a client application no longer requests event notifications.
sensors\isensordriver_onclientunsubscribefromevents.htm
sensors
05/03/2018
ISensorDriver::OnClientUnsubscribeFromEvents
ISensorDriver interface [Sensor Devices],OnClientUnsubscribeFromEvents method, ISensorDriver.OnClientUnsubscribeFromEvents, ISensorDriver::OnClientUnsubscribeFromEvents, OnClientUnsubscribeFromEvents, OnClientUnsubscribeFromEvents method [Sensor Devices], OnClientUnsubscribeFromEvents method [Sensor Devices],ISensorDriver interface, sensors.isensordriver_onclientunsubscribefromevents, sensorsclassextension/ISensorDriver::OnClientUnsubscribeFromEvents
sensorsclassextension.h
Windows
SensorsClassExtension.lib
Windows
ISensorDriver::OnClientUnsubscribeFromEvents
sensorsclassextension/ISensorDriver::OnClientUnsubscribeFromEvents
APIRef
kbSyntax
COM
SensorsClassExtension.lib
SensorsClassExtension.dll
ISensorDriver::OnClientUnsubscribeFromEvents

ISensorDriver::OnClientUnsubscribeFromEvents

-description

The ISensorDriver::OnClientUnsubscribeFromEvents method notifies the sensor driver that a client application no longer requests event notifications.

-parameters

-param pClientFile

Pointer to an IWDFFile interface that represents the file object for the application requesting cancellation of event notifications.

-param pwszSensorID

LPWSTR that contains the ID for the sensor from which the client application is requesting cancellation of event notifications.

-returns

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

-remarks

The sensor class extension calls this method in the following instances:

  • An application unsubscribes from events.
  • An application closes normally.
  • The user revokes permission for an application to access the device that contains the specified sensor.
  • The sensor class extension is shutting down.
  • The cleanup work from a call to ISensorClassExtension::CleanupFile has completed.
You can use this call as a signal to update the reference count of applications requesting events for the specified sensor.

For more information about how to use this method, see Filtering data.

The ClientData structure is defined as follows.

-see-also

ISensorDriver