C ++ CPU总线速度&倍数(比率) [英] C++ CPU Bus Speed & Multiplier(Ratio)

查看:78
本文介绍了C ++ CPU总线速度&倍数(比率)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图获取CPU总线速度和乘数(比率),结果发现我无法通过C#.

因此,我想知道是否有人知道如何使用C ++而不使用Win32_类型库.

I tried to get the CPU Bus Speed and Multiplier(ratio) and found out that I could not via C#.

So I am wondering if anyone knows how to get these with C++ without using Win32_ type libraries.

推荐答案

获取有关系统上安装的硬件(及其硬件)的信息.操作参数)是由驱动程序和操作系统控制的功能. C ++或任何编程语言都没有直接连接安装的硬件的调用.一切都通过操作系统的调用进行处理,从而使您可以访问信息(即API).

这是我所指的图片:
http://upload.wikimedia.org/wikipedia/commons/e/e1/Operating_system_placement.svg [^ ]
Getting information about the hardware installed on a system (and its operational parameters) is a function controlled by the drivers and operating system. C++, or any programming language, does not have calls to directly interface to hardware installed. Everything is processed via the OS''s calls that allow you access to the information (i.e. the APIs).

Here''s an image of what I''m referring to:
http://upload.wikimedia.org/wikipedia/commons/e/e1/Operating_system_placement.svg[^]


我不同意上述解决方案,因为它对您的问题说不.我在操作系统级别上工作.您可以使用Windows中的设备驱动程序编程"概念来完成所需的事情,甚至可以使用它进行固件级别的编程..:)
I am not agree with the above solution as it says no to your question. I worked at OS level. the thing you require can be done using the concept Device Driver Programming in windows, using which you can even do firmware level programming.. :)


这篇关于C ++ CPU总线速度&倍数(比率)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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