Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
Hi, I recently discovered that there is a way for hackers to spy through your PC's video camera to spy on you. Usually I disconnect my portable camera when I'm on my desktop but for my laptop with a built in camera that's a different story. I want to try to create a anti spy application on visual C# with no third party programs.I want the program to alert me with a messagebox when the program picks up activity with the camera. Is this possible? If so, how can it be done?

Also out of curiosity, is there a way to make an application that detects hidden windows that are running under 100% opacity?

I will appreciate any comments thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 8-May-12 23:22pm    
This question makes me paranoid about my own camera on a laptop I'm working with right now, so I voted 5. :-)
--SA
MR. AngelMendez 8-May-12 23:26pm    
thanks I hope the process is possible and easy to do

1 solution

Well, maybe you take a look at the examples here
Versatile WebCam C# library[^] or WebCam Fast Image Capture Service using WIA[^] and just check if the device is availale and able to capture. If you do this frequently you know when another application is using the webcam because the access should be blocked for your application - maybe not, if concurrent usage of webcam devices is possible, as far as i know it's not. do the same for mic, clipboard and screen and post your security suite here. i am very intrested in this for your concerns are totally reasonable. contact me on success.
 
Share this answer
 
Comments
MR. AngelMendez 10-May-12 4:25am    
Hi, sorry I haven't been on lately. Unfortunately I am confused with both of your example links, I am not so fluent in visual C#. Is there a process that goes on when the camera is active? if so then I could try to track it and make a messagebox alert me when it is active. I appreciate your help, thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900