views:

20

answers:

1

Hi..

Please let me know your answer for my below question

Does this win32 api RegisterDeviceNotification Function requires GUI

wont it work without GUI

thank you

A: 

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.

Sergius
can you please explain me as i cant understand
barbgal
do you say i must have a window
barbgal
Yes, you must have a window, but it can be invisible to user (user doesn't see any GUI).
Sergius
@barbgal: If you can create a windows without the `WS_VISIBLE` window style, the windows will be not seen.
Oleg