Does RegisterDeviceNotification require a GUI
Does the Win32 api function, RegisterDeviceNotification
require a GUI?
Will it work without a GUI?
开发者_StackOverflow社区Thank you.
It requires a window handle (or a service handle). The window handle may points to a hidden message-only window, so there is no GUI but there must be a message pump.
精彩评论