Windows VC++ 获取机器型号名称 [英] Windows VC++ Get Machine Model Name
问题描述
谁能告诉我如何获得Windows机器的型号名称.我是 Windows VC++ 的新手.
Can anyone Please tell me how to get Model name of Windows Machine. I am new to Windows VC++.
例如,我有一台在 Windows 上运行的 IBM ThinkCenter M50.这里的型号名称是Think Center M50".我想使用一些 API 从系统中获取它.
For Example i have an IBM ThinkCenter M50 running on Windows. Here the Model name is "Think Center M50". I want to get this from the System using some API.
提前致谢,Shashi Kiran G M
Thanks in Advance, Shashi Kiran G M
推荐答案
或者,您可以使用注册表项:
Alternatively, you could use the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SystemInformation
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SystemInformation
还有:HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS(仅限 Win7 或更高版本)
also: HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS (Win7 or later only)
SystemManufacturer 和 SystemProductName 条目应该这样做.节省使用 WMI,出于性能原因,我不惜一切代价避免使用 WMI.
The SystemManufacturer and SystemProductName entries should do it. Saves using WMI, which i try to avoid at all costs for performance reasons.
这篇关于Windows VC++ 获取机器型号名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!