TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Eugene Vv
NA
25
0
Disabling automatic device detection programmatically
Aug 11 2011 10:21 AM
Hello everybody! =)
Please help me with the next problem:
How to disable automatic device detection programmatically (in C#, maybe using winAPI)? When I remove a device from a Device manager, I have to disable auto detection after rebooting windows. As I read, I should disable Plug&Play in registry. It seems I've done it (it works on Win XP, but not in Win7)
How I did that:
Disable Universal Plug and Play Device Host
Open your registry and find the key [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\upnphost]. Set the value of "Start" to "4" to disable the service, or "3" to enable it.
Disable UnPnP Discovery Service
Open your registry and find the key [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SSDPSRV]. Set the value of "Start" to "4" to disable the service, or "3" to enable it.
Is it right? Thanks for your attention to my question =)
Have a nice day!)
Reply
Answers (
1
)
Process.MainWindowTitle returns empty used in Windows Service (OS=Windows7)
File Watcher program