/// <summary>
/// 获取当前客户端操作系统
/// </summary>
/// <returns></returns>
private string getOSVersion()
{
try
{
string osVersion = string.Empty;
RegistryKey rk = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion");
if (rk != null)
{
osVersion = rk.GetValue("ProductName").ToString();
}
return osVersion;
}
catch
{
return "unknown";
}
}
获取客户端系统名称
最新推荐文章于 2022-04-08 10:12:40 发布