function called RegisterDeviceNotification which registers the application with the system to. Copyright © 2010 Future Technology Devices International Limited 4 This Windows API function can be used to request to be. static extern IntPtr RegisterDeviceNotification(IntPtr. Function RegisterDeviceNotification. See Also Device Management Functions Device Notifications BroadcastSystemMessage HandlerEx RegisterDeviceNotification UnregisterDeviceNotification DEV_BROADCAST_HDR 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. C++ Win32 Not receiving DBT_DEVICEARRIVAL or DBT_DEVICEREMOVECOMPLETE on. RegisterDeviceNotification. the RegisterDeviceNotification function to register. An application can register for device change notifications using RegisterDeviceNotification Function (Windows) API. When an application or service calls. When I call the RegisterDeviceNotification function. it is not necessary to call RegisterDeviceNotification for ports, and the function fails. Device notification handle returned by the RegisterDeviceNotification function. (B). How can I use RegisterDeviceNotification without a window. and detach all use RegisterDeviceNotification which requires a window. the function fails, the return. Device Management Functions RegisterDeviceNotification. Applications can use the RegisterDeviceNotification function to register to receive.