Cómo utilizar MFC para obtener el ID físico del disco duro
dwProcessorType==PROCESSOR_INTEL_486)
{
> m_strProcessorType = _T("Intel486");
}
else if (sysInfo. dwProcessorType==PROCESSOR_INTEL_PENTIUM)
{
m_ p>
CString str;
str.Format("%d",sysInfo .dwNumberOfProcessors);
m_strProcessorNum = str;
resultado LARGO;
HKEY hKey;
datos DWORD;
DWORD dataSize;
//abrir registro
resultado = ::RegOpenKeyEx (HKEY_LOCAL_MACHINE,
"Hardware\\ Descripción\\System\\CentralProcessor\ \0", 0, KEY_QUERY_VALUE, &hKey);
// Obtener la velocidad de procesamiento de la CPU
if (result==ERROR_SUCCESS)
{
resultado = :::RegQueryValueEx (hKey, _T("~MHz"), NULL, NULL, (LPBYTE)&data, &dataSize);
m_strCPUSpeed.Format ("%d", datos)
m_strCPUSpeed += _T (" MHz");
}
RegCloseKey (hKey);//Cerrar el registro
ActualizarDatos(FALSO);