对chosse的编程语言感到困惑 [英] Confused about programming language to chosse

查看:103
本文介绍了对chosse的编程语言感到困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想知道是否可以编写一个直接在c#中与主板对话的程序。考虑一个例子,假设我想告诉主板禁用所有可用的USB端口,比如我希望主板停止向所有可用USB端口供电。同样如果我想通过断开电源告诉MB禁用音频端口。我能用C#实现这个目标吗?如果没有建议我需要学习什么。



谢谢。



什么我试过了:



谷歌这个,但dint得到相关信息

Wondering is it possible to write a program which talks to motherboard directly in c#. Consider an example, suppose I want to tell motherboard to disable all the USB ports available something like I want motherboard to stop power supply to all the available USB ports. In the same way if I want to tell MB to disable audio port by disconnecting the power supply. Can I achieve this in C#? If no suggest me what do I need to learn.

Thank You.

What I have tried:

Google on this but dint got relevant info

推荐答案

否,你不能。

没有标准的OS功能来禁用USB端口或音频输出。



你可能为特定设备做很多工作 - 但是没有通用的功能可以为你做这一切。



你想要什么?无论如何要做到这一点?特别是考虑到许多鼠标和键盘组合通过USB端口连接。
No, you can't.
There is no standard OS function to disable the USB ports, or the audio output.

You could probably do it - with a lot of work - for specific devices, but there isn't a generic feature to do it all for you.

What on Earth would you want to do that for anyway? Particularly given that many mouse and keyboard combos are connected via the USB port.


我怀疑你可以告诉主板切断特定(连接或车载设备)的电源)在任何情况下......

在任何情况下你都不能直接与硬件对话,因为至少BIOS(但在大多数情况下是操作系统)阻碍你...

在操作系统中,像Windows一样,你甚至无法直接访问BIOS(因为DOS BIOS甚至根本没有使用它)...

所以 - 对于C#来说,这是肯定的。 ..
I'm doubt that you can tell a motherboard to cut power supply to a specific (connected or on-board device) at all...
In any case you can't talk directly to the hardware as at least the BIOS (but in most cases the OS) stands in your way...
In OS, like Windows you can't even access BIOS directly (since DOS BIOS not even used much if at all)...
So - for C# it is a definite no...


引用:

假设我想告诉主板禁用所有可用的USB端口我希望主板停止为所有可用的USB端口供电。

suppose I want to tell motherboard to disable all the USB ports available something like I want motherboard to stop power supply to all the available USB ports.



不,操作系统会阻止你这样做。无论如何,由于键盘和鼠标是USB,这是一个坏主意。


No, the OS is here to prevent you from doing this. Any way, since keyboard and mouse are USB, it is a bad idea.

引用:

更多我只是有这个想法和我的朋友一起玩

More over I just got this idea to play around with my friends

这叫做MalWare。



从技术上来说,事情是可能的但是暗示要替换部分操作系统,这是保留给高技能和专业程序员的东西,可能在这个领域多年的实践。

语言可能是C ++。

这种驱动程序进入环 0类别,最接近硬件,如处理新图形卡的驱动程序。

This is called MalWare.

Technically the thing is possible but imply to replace part of the OS, which is something reserved to highly skilled and specialized programmers with probably years of practice on this domain.
The language is probably C++.
This kind of "driver" enter in the "ring 0" category, which the closest to hardware, like the driver to handle a new graphic card.

引用:

hibernate模式如何在windows上运行?

how does the hibernate mode work on windows?

你很幸运,这是另一个不要触摸。

Hibernate基本上关掉电脑。

什么是你想要做这一切的确切原因是什么?

这种东西属于切断一辆车的类别,你不要这样做除非你想伤害别人。

You are lucky, it is another don't touch.
Hibernate basically turn off the computer.
What is the exact reason why you want to do all this ?
This kind of things is in same category as "cutting breaks of a car", you don't do this unless you want to harm someone.

引用:

在这种情况下,为什么操作系统没有阻止它从做到这一点?

In that case why does OS is not preventing it from doing it?

Hibernate由操作系统完成。

Hibernate是你在午餐时打开笔记本电脑时的操作系统。

Hibernate is done by the OS.
Hibernate is what the OS do when you let your laptop turned on while you go to lunch.


这篇关于对chosse的编程语言感到困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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