JVCL Help:TJvComputerInfoEx.OnDeviceChange

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when a device is added or removed from the system.


Pascal

 TJvDeviceChangeEvent = procedure (Sender: TObject; Event: UINT; Data: Pointer) ofobject;
propertyOnDeviceChange: TJvDeviceChangeEvent;


Parameters

Parameters Description
Data Pointer to a DEV_BROADCAST_HDR structure with additional information.
Event Either DBT_DEVICEARRIVAL (device added) or DBT_DEVICEREMOVECOMPLETE (device removed)
Sender The object that triggered the event.


Description

Write a handler for this event to take specific actions when devices are added or removed from the computer. If you only want to handle device additions, use OnDeviceAdded instead. If you only want to handle device removals, use OnDeviceRemoved instead.
This event is triggered in response to a WM_DEVICECHANGE.


See Also

, ,


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page