开发者

How to modify the BIOS boot options to USB-HDD in C#?

I want 开发者_如何学Goto know if I can do it in C# or other languages?


There is no universal way to do this because BIOS configurations vary from vendor to vendor. The mapping of various CMOS memory locations is unique to the motherboard, BIOS, and BIOS revision. You'll have to find out this information from your particular vendor, and your app won't be very portable.

Plus, even once you get past this hurdle, Windows won't allow you to access the BIOS (or otherwise do port I/O) from a user-mode application. You'll have to write a kernel mode driver to be able to do this. And of course, you cannot write kernel mode drivers in C# because the runtime executes in user mode. You'll have to write something like this in C.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜