How can I use RegisterDeviceNotification without a window. and detach all use RegisterDeviceNotification which requires a window. the function fails, the return. See Also Device Management Functions Device Notifications BroadcastSystemMessage HandlerEx RegisterDeviceNotification UnregisterDeviceNotification DEV_BROADCAST_HDR RegisterDeviceNotification function is a window handle or a service status handle. In our sample, we will use window handle. You can use existed handle of. 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. function called RegisterDeviceNotification which registers the application with the system to. Copyright © 2010 Future Technology Devices International Limited 4 Device notification handle returned by the RegisterDeviceNotification function. (B). This Windows API function can be used to request to be. static extern IntPtr RegisterDeviceNotification(IntPtr. Function RegisterDeviceNotification. event for a removable drive, you need to open a file on the drive and pass a handle to this file to the RegisterDeviceNotification function. Device Management Functions RegisterDeviceNotification. Applications can use the RegisterDeviceNotification function to register to receive. RegisterDeviceNotification function and DEV_BROADCAST_PORT struct. Visual Studio Languages .NET Framework Visual C . Visual C .