; /// <summary>
/// 主板编号
/// </summary>
/// <returns></returns>
public string GetGroupName()
{
string result = \"\";
ManagementObjectSearcher searcher = new ManagementObjectSearcher(\"root\\CIMV2\", \"SELECT * FROM Win32_Group\");
ManagementObjectCollection moCollection = searcher.Get();
foreach (ManagementObject mObject in moCollection)
{
result += mObject[\"Name\"].ToString() + \" \";
}
return result;
}
/// <summary>
/// 获取本地驱动器信息
/// </summary>
/// <returns></returns>
public string GetDriverInfo()
{
string result = \"\";
ManagementObjectSearcher searcher = new ManagementObjectSearcher(\"root\\CIMV2\", \"SELECT * FROM Win32_LogicalDisk\");
ManagementObjectCollection moCollection = searcher.Get();
foreach (ManagementObject mObject in moCollection)
{
//mObject[\"DriveType\"]共有6中可能值,分别代表如下意义:
//1:No type 2:Floppy disk 3:Hard disk
&nb