我们可以使用任何编程语言在计算机中设置寄存器位吗? [英] Can we set the register bits in computer using any programming language?

查看:84
本文介绍了我们可以使用任何编程语言在计算机中设置寄存器位吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是我想关闭当我在网络摄像头时打开的灯..

帮助我在windows中使用它来做它。

i希望在/hkey/local/...../
中设置寄存器biters


我尝试过:



i试过java,c#,c ++,c据我所知。

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.

推荐答案

我相信你的意思是说注册表,而不是注册,这误导人们认为你想操纵CPU寄存器的位。



给你说hkey / local :



1.在Windows上运行的任何编译语言都应该有一个允许您更改注册表值的库。这包括常见的:C,C#,C ++

2.大多数鸭子类型的语言(如Python,Ruby等)将具有特定于Windows的插件,可以让您更改注册表值。 />
3.其他语言,如Go,R等,看看它们提供的是什么。



请记住,注册表是Windows平台特定的东西,所以你必须寻找作为库等存在的平台特定功能,可以使用你想要使用的语言。



哪个重点 - 它不是语言,而是你需要看的支持库。



Marc
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


您将获得您所谈论的设备所公开的API。不,在您的示例中,并非每个网络摄像头都会公开此功能。



另外,为什么要在相机开启时关闭LED ?这样做只有一个合理的理由,我严重怀疑你是否会走这条路。
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.


这篇关于我们可以使用任何编程语言在计算机中设置寄存器位吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆