mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Removed "Service Pack" from copied debug info
This commit is contained in:
parent
163d23565e
commit
b6bdfae6e3
2 changed files with 1 additions and 24 deletions
|
|
@ -410,29 +410,6 @@ public struct _PROCESSOR_INFO_UNION
|
|||
|
||||
#endregion PINVOKE
|
||||
|
||||
#region SERVICE PACK
|
||||
/// <summary>
|
||||
/// Gets the service pack information of the operating system running on this computer.
|
||||
/// </summary>
|
||||
static public string ServicePack
|
||||
{
|
||||
get
|
||||
{
|
||||
string servicePack = String.Empty;
|
||||
OSVERSIONINFOEX osVersionInfo = new OSVERSIONINFOEX();
|
||||
|
||||
osVersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));
|
||||
|
||||
if (GetVersionEx(ref osVersionInfo))
|
||||
{
|
||||
servicePack = osVersionInfo.szCSDVersion;
|
||||
}
|
||||
|
||||
return servicePack;
|
||||
}
|
||||
}
|
||||
#endregion SERVICE PACK
|
||||
|
||||
#region VERSION
|
||||
#region BUILD
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ private void GetDebugInfo()
|
|||
Version vrs = new Version(Application.ProductVersion);
|
||||
StringBuilder sb = new StringBuilder(string.Empty);
|
||||
sb.AppendLine("App version = " + vrs);
|
||||
sb.AppendLine(string.Format("OS name = {0}", OSVersionInfo.Name + " " + OSVersionInfo.ServicePack));
|
||||
sb.AppendLine(string.Format("OS name = {0}", OSVersionInfo.Name));
|
||||
sb.AppendLine(string.Format("OS version = {0}", OSVersionInfo.VersionString));
|
||||
sb.AppendLine(".Net Framework = " + Methods.GetDotNetVersion());
|
||||
Clipboard.SetText(sb.ToString());
|
||||
|
|
|
|||
Loading…
Reference in a new issue