本文介绍了对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

推荐答案



引用:

假设我想告诉主板禁用所有可用的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的编程语言感到困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 20:46