• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 315
  • Last Modified:

How can block a user from connecting to external device.

Hi,
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.
0
VapiSoft
Asked:
VapiSoft
1 Solution
 
pgnatyukCommented:
If it's really only about a CD you can read about WM_DEVICECHANGE message:
http://msdn.microsoft.com/en-us/library/aa363480(VS.85).aspx
 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
 
0
 
VapiSoftAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now