summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/SystemInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Functions/SystemInfo.cs')
-rw-r--r--win/C#/Functions/SystemInfo.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/win/C#/Functions/SystemInfo.cs b/win/C#/Functions/SystemInfo.cs
index c081e4f81..535bda6d3 100644
--- a/win/C#/Functions/SystemInfo.cs
+++ b/win/C#/Functions/SystemInfo.cs
@@ -1,5 +1,6 @@
using System;
using System.Runtime.InteropServices;
+using Microsoft.Win32;
namespace Handbrake.Functions
{
@@ -41,5 +42,16 @@ namespace Handbrake.Functions
}
#endregion
+ public Object getCpuCount()
+ {
+ RegistryKey RegKey = Registry.LocalMachine;
+ RegKey = RegKey.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
+ return RegKey.GetValue("ProcessorNameString");
+ }
+
+ public System.Windows.Forms.Screen screenBounds()
+ {
+ return System.Windows.Forms.Screen.PrimaryScreen;
+ }
}
}