Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How can block a user from connecting to external device.

Posted on 2009-12-18
Medium Priority
Last Modified: 2013-12-14
I want to be able to get an even in my program (which is resident) when I user tries to connect to an external device such as disk-on-key or CD, and to be able to block it.
Question by:VapiSoft
LVL 33

Accepted Solution

pgnatyuk earned 2000 total points
ID: 26079519
If it's really only about a CD you can read about WM_DEVICECHANGE message:
 How to receive notification of CD-ROM insertion or removal: http://support.microsoft.com/kb/163503
Detecting Hardware Insertion and/or Removal:  http://www.codeproject.com/KB/system/HwDetect.aspx

Author Closing Comment

ID: 31667698

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question