Версия Delphi: 2007 & JAVA EE. - RegisterDeviceNotification работаем только с оконными дескрипторами. Detecting Hardware Insertion and/or Removal. Sam NG. HDEVNOTIFY hDevNotify = RegisterDeviceNotification(this- GetSafeHwnd(), amp;. All about Borland Delphi. Programming tips. detect if a USB device is connected or disconnected? Autor. // using RegisterDeviceNotification unit U_Usb; interface DEV_BROADCAST_HDR structure. Serves as a standard header for information related to a device event reported through the WM_DEVICECHANGE message. Detecting when a volume is mounted in Windows with Delphi. = RegisterDeviceNotification. It can detect when a specified volume is mounted. HDEVNOTIFY WINAPI RegisterDeviceNotification. Services can use the RegisterDeviceNotification function to register to receive device notifications. I would appreciate you help about the use RegisterDeviceNotification function in delphi. I need some example about this. Thank's. 2006-10-15 11:07:28 PM cppbuilder78 I'm currently detecting DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE for one specific device class. This is done by using WM_DEVICECHANGE : DBT_DEVNODES_CHANGED However, the DBT_DEVNODES_CHANGED is sent multiple times whenever a. Look at the RegisterDeviceNotification() function. Quote How to catch WM_DEVICECHANGE in a control other. Call RegisterDeviceNotification to tell the OS that your. Browse other questions tagged delphi delphi-2009.