DeviceOtherEvent Event

       

A notification event that does not map onto the general events.

Syntax

Private Sub object_DeviceOtherEvent([index As Integer,] ByVal devicetype As Long, ByVal eventname As String, ByVal datapointer As Long)

The DeviceOtherEvent event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
index A numeric expression that evaluates to the index of a control if it is in a control array.
devicetype A value that indicates the type of device that will process events, as described in Settings.
eventname A string expression that evaluates to the name of an event.
datapointer A long value that points to device-specific data.

Settings

The settings for devicetype are:

Constant Value Description
DeviceTypeOEM 0 OEM-defined device type.
DeviceTypeDevNode 1 Devnode number (Windows 95).
DeviceTypeVolume 2 Logical volume (disk drive).
DeviceTypePort 3 Serial or parallel port.
DeviceTypeNet 4 Network resource