c 列印 主機板資訊CPU資訊

2022-01-15 04:23:24 字數 1450 閱讀 4690

win32_processor cpu 引數說明:win32_baseboard 主機板 引數說明:

/// /// 獲取cpu序列號** 

///

///

static string getcpuid()

moc = null;

mc = null;

return cpuinfo;

}catch

finally

}/// /// 列印cpu資訊

///

///

public static string printcpuinfor()

", pd.name, "\t", pd.value));

s += string.format(": \r\n", pd.name, pd.value);

}break;

}moc = null;

mc = null;

return s;

}catch

finally

}/// /// 列印主機板資訊

///

public static string printmotherboardinfo()

", pd.name, "\t", pd.value));

s += string.format(": \r\n", pd.name, pd.value);}}

return s;

}//獲取主機板序號

public static string getmotherboardserialnumber()

return serialnumber;

}/// /// 取第一塊硬碟編號

///

///

static string getharddiskid()

return strharddiskid;

}catch

}/// /// 取硬碟型號

///

///

static string getdiskmodelid()

moc = null;

mc = null;

return hdid;

}catch

finally

}//獲取計算機名

static string getcomputername()

catch

finally

}

另外,獲取cpu uuid (不知道這個uuid是否是真的唯一?)

/// /// 獲取cpu uuid

///

///

public static string getprocessoruuid_number()

", "").replace("

catch

}

C 獲取CPU資訊

include windows.h include iostream include string using namespace std 用來儲存資訊 dword deax dword debx dword decx dword dedx void execpuid dword veax 初始化c...

linux 下檢視主機板 CPU 記憶體 硬碟等資訊

1.檢視主機板資訊 dmidecode grep a16 system information 2.檢視cpu資訊 cpu總核數 物理cpu個數 每顆物理cpu的核數 總邏輯cpu數 物理cpu個數 每顆物理cpu的核數 超執行緒數 檢視cpu資訊 型號 root esggy clu n003 ca...

檢視CPU資訊

cpu總核數 物理cpu個數 每顆物理cpu的核數 總邏輯cpu數 物理cpu個數 每顆物理cpu的核數 超執行緒數 檢視cpu資訊 型號 root aaa cat proc cpuinfo grep name cut f2 d uniq c 24 intel r xeon r cpu e5 263...