Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
CodeDelphiTech Partner

Easy Way To Monitor Devices Connected To A Machine In Your Delphi App With Flexible Component Suite

devicemonitorfimage

Do you need to Monitor Devices in your Machine from your Delphi Application? Don’t know where to start with ? Don’t worry. MiTec’s System Information Management Suite’s component helps to monitor your USB, Bluetooth devices or TV/monitor connection/disconnection, volumes mount/unmount, CD/DVD insert/eject with less code and we will learn how to use MiTeC_DeviceMonitor in this blog post.

Platforms: Windows.

Installation Steps:  

You can easily install this Component Suite from GetIt Package Manager. The steps are as follows.

  1. Navigate In RAD Studio IDE->Tools->GetIt Package Manager->select Components in Categories->Components->Trail -MiTec system Information Component Suite 14.3 and click Install Button.
  2. Read the license and Click Agree All. An Information dialog saying ‘Requires a restart of RAD studio at the end of the process. Do you want to proceed? click yes and continue.
  3. It will download the plugin and installs it. Once installed Click Restart now.

How to run the Demo app: 

  • Navigate to the System Information Management Suite trails setup, Demos folder which is installed during Get It installation e.g) C:UsersDocumentsEmbarcaderoStudio21.0CatalogRepositoryMiTeC-14.3DemosDelphi8
  • Open the  DeviceMonitor  project in RAD studio 10.4.1 compile and Run the application.
  • This Demo App shows how to monitor the USB Devices, Storage Devices upon connection and disconnection to your machine.

Components used in MSIC DeviceMonitor App:

  • TMiTeC_DeviceMonitor: Catches USB, Bluetooth devices or TV/monitor connection/disconnection, volumes mount/unmount, CD/DVD insert/eject and other events from other devices. It has events such as OnDeviceConnect, OnDeviceDisconnect, OnMessage, OnVolumeConnect, OnVolumeDisconnect to monitor the devices.
  • TListBox to list the event messages upon device gets connected and disconnected other message notifications.
  • TMemo to highlight the line from the list box separately for easy reading.
  • TButton to save/clear the messages in the list box and for closing.

Implementation Details:

  • An instance DeviceMonitor of TMiTeC_DeviceMonitor is created. During DeviceMonitorDeviceConnect, it identifies the device desc class by matching the GUID and logs the message according to the device connected.
  • Upon disconnecting, it identifies the device desc class by matching the GUID and logs the message according to the device disconnected.
  • To monitor device custom event messages,
devicemonitordemo 8936305
<strong>MiTeC DeviceMonitor Demo<strong>

Developers can use this MiTeC Component suite and able to monitor the devices with writing less code.

Head over and check out the full MiTec System Information Management Suite for Access System Information for Wndows in Delphi Applications

See What's New in 12.2 Athens See What's New in 12.2 Athens Dev Days of Summer 2-24

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES