`
bcyy
  • 浏览: 1819053 次
文章分类
社区版块
存档分类
最新评论

早期一个国外获取硬件信息的VC小程序

 
阅读更多

System Hardware Information Finder

系统硬件信息查找器

This is another of utility applications which can be used as an tool to get and report information about your systemCPU, memory page size, mouse installation, etc.

这是个能够用来查找CPU/内存分页/鼠标安装等信息的一组应用集合。


GetProcessorInfo function in ChardwareInfoDlg makes use of GetProcessorInfo API call to get althe information about the type of CPU installed on your machine. The information is returned in SYSTEM_INFO data structure. It contains the data about chip architecture, number of processors installed, page size, minimum andmaximum memory address available on your machine, etc. This information is converted into string format and displayed in the dialog box.

ChardwareInfoDlg 中的 GetProcessorInfo 函数调用 GetProcessorInfo API 来获取安装在你机器上的CPU的类型信息。数据返回到 SYSTEM_INFO 结构,它包含芯片架构、处理器数、页面大小、最小和最大的可用内存地址等等。这些信息被转换成string类型并显示在对话框里。


The information about mouse, if any,installed on your system can be obtained by usingGetSystemMetricsAPI call.The information specific to mouse speed can be obtained by usingSystemParametersInfoAPI call. The information obtained by these API calls is converted in string format to show in dialog box.

关于安装在你电脑上的鼠标(如果有的话)可以通过调用GetSystemMetricsAPI 来取得。鼠标速度具体信息可以通过调用SystemParametersInfo API 来取得。这些信息同样被转换成string类型并显示在对话框里。


The sample application has been compiledand tested using VC ++5.0/6.0 compilers on Windows NT 4.0 OS.

此应用的范例在 Windows NT 4.0 OS 下经 VC ++5.0/6.0 编译器编译测试通过。


以下内容来自源码爱好者(http://www.codefans.net)


内容索引:VC/C++源码,系统相关,硬件
  早期的一个国外程序员编写的小程序,用来获取电脑的硬件信息,语言是英文的,这些硬件信息包括:处理器型号、处理器核心数量、核心等级、活动处理器、内存地址、页面缓存、内存大孝是否安装鼠标以及鼠标数量等,这些参数貌似对应Windows98的,因此有点老了,朋友们看着办吧,不想要的就跳过吧。


下载地址:http://adf.ly/By9wp

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics