Tauli
asked on
USB Device detection
Hello,
can anybody say me how i detect an usb-device without DBT_DEVICEARRIVAL, because i have no WindowHandle?
I use VS2005 - C++
thx
can anybody say me how i detect an usb-device without DBT_DEVICEARRIVAL, because i have no WindowHandle?
I use VS2005 - C++
thx
If you don't have a window handle, just set up a dummy window to receive the notifications as demonstrated in http://msdn.microsoft.com/en-us/library/aa363432%28VS.85%29.aspx ("Registering for Device Notification"). The only other option is to use a service, sorry.
ASKER
oh i use a service. how i detect it with a service? i can't use windowhandles, because interaction with the desktop is not allowed. it must be work without userlogon...
ASKER
in addition... it's a raw-communication over USB and the prog interact with mobile-devices. now it must be run as a service. the service exists, the raw-interface exist, both working fine - my last task is combine both parts...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
very fine... thx
ASKER
no comment - all very fine