This Windows API function can be used to request to be. static extern IntPtr RegisterDeviceNotification(IntPtr. Function RegisterDeviceNotification. Detecting USB Drive Removal in a C . you need to open a file on the drive and pass a handle to this file to the RegisterDeviceNotification function. Using RegisterDeviceNotification in a.NET app. Ask Question. up vote 3 down vote favorite. 1. I have seen some examples on how to use RegisterDeviceNotification from. HDEVNOTIFY WINAPI RegisterDeviceNotification. Services can use the RegisterDeviceNotification function to register to receive device notifications. When I call the RegisterDeviceNotification function. it is not necessary to call RegisterDeviceNotification for ports, and the function fails. RegisterDeviceNotification Function,一成不变的网易博客,前面。。。。。。, function called RegisterDeviceNotification which registers the application with the system to. Copyright © 2010 Future Technology Devices International Limited 4 A user-mode application calls the RegisterDeviceNotification function to register itself to be notified when a processor or memory module is dynamically added to the. Capturing Device Events in a C Windows Service. we will register for device notifications by using the Win32 API function RegisterDeviceNotification. How can I use RegisterDeviceNotification without a window. and detach all use RegisterDeviceNotification which requires a window. the function fails, the return.