Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
problem is i would like to turn off the light that turns on when i on the webcam..
help me with what i need to use to do it in windows.
i want to set register biters in /hkey/local/...../

What I have tried:

i tried java,c#,c++,c upto my knowledge.
Posted
Updated 2-Apr-16 10:29am
v2
Comments
Sergey Alexandrovich Kryukov 2-Apr-16 15:40pm    
What is that supposed to mean "register bits"? In memory and registers, there are bits and bigger words, and any non-nonsense programming languages provides a facility to manipulate bits.

The only thing is: you don't write anything in "any" programming language, you always write in a particular one. It's not the same as cross-platform programming where you write one line of code suitable for all supported platform.

Therefore, the question makes little to no sense. Just learn how to do it in each separate language. This is simple enough.

—SA

I believe you mean to say "registry", not "register", which is misleading people to think that you want to manipulate the bits of the CPU registers.

Given you say "hkey/local":

1. any compiled language that runs on Windows should have a library that lets you change registry values. This includes the common ones: C, C#, C++
2. most duck-typed languages (like Python, Ruby, etc) will have plugins specific for Windows that will let you change registry values.
3. Other languages, like Go, R, etc., look to see what they provide.

Remember that the registry is a Windows platform-specific thing, so you have to look for what platform specific capability exists as a library, etc., that is accessible to the language you want to use.

Which is the point--it's not the language, but the supporting libraries, that you need to be looking at.

Marc
 
Share this answer
 
You get whatever the API exposes for the device you're talking about. No, not every web cam, in your example, is going to expose this functionality.

Also, why would you want to turn the LED off when the camera is on? There is only one legitimate reason to do that and I seriously doubt you're going down that path.
 
Share this answer
 

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