IEventManager::UninstallHandler

Description

Allows applications to uninstall handlers for events on sessions. Applications should also specify the value in the userHandle parameter that was passed to InstallHandler while installing the handler.  VISA identifies handlers uniquely using the handler reference and this value.  All the handlers for which the handler reference and the value matches are uninstalled.

VB Prototype

UninstallHandler(
  type As EventType,
  userHandle As Long, ' Optional Parameter
  customEventType As Long ' Optional Parameter
)

C++ Prototype

HRESULT UninstallHandler(
  EventType type,
  long userHandle,
  long customEventType
);

Parameters

type

The type of event for which to uninstall the handler.

userHandle

[Optional in Visual Basic] A client provided value that uniquely identifies the handler.

customEventType

[Optional in Visual Basic] If the event type property is CUSTOM_EVENT_TYPE, this argument contains the custom event type number, otherwise it is ignored.

Return Value

Refer to the table of return codes.

See Also

ComponentVersion, SpecVersion, HardwareInterfaceName, HardwareInterfaceNumber, HardwareInterfaceType, LockState, OptionString, ProgID, ResourceName, SessionType, SoftwareManufacturerID, SoftwareManufacturerName, Timeout, LastStatus, MaximumQueueLength, GetAttribute, SetAttribute, LockRsrc, UnlockRsrc, Init, Close, EnableEvent, DisableEvent, DiscardEvents, WaitOnEvent, InstallHandler, UninstallHandler, IEventManager Overview