WiaEventFlag Enumeration

Supplies the bits that make up a DeviceEvent type. You can test a DeviceEvent type by using the AND operation with Type (DeviceEvent) and a member from the WiaEventFlag enumeration.

Syntax

Enum WiaEventFlag
    NotificationEvent = 1
    ActionEvent = 2
End Enum

Constants

  • NotificationEvent
    Indicates that the DeviceEvent is intended to notify a running application that this event has occurred.
  • ActionEvent
    Indicates that the DeviceEvent can, if necessary, launch an application if this event occurs.

Remarks

Because only Action events can have persistent event handlers, it is important to test for this flag before calling RegisterPersistentEvent.

For example code, see Determine the Event Type in Shared Samples.

Enumeration Information

Minimum operating systems Windows XP SP1