diff options
author | sr55 <[email protected]> | 2008-08-16 19:42:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-08-16 19:42:44 +0000 |
commit | fa9459cd2bd333541564d08a3bfc7d0edf44443b (patch) | |
tree | dabba69dfbc834befb4ce662e40a9805ec5a51d3 /win/C#/Functions | |
parent | 0d63c1bef741e359f8d10664266ad4c6b411cd6c (diff) |
WinGui:
- One elusive cross-thread bug in the Activity window fix (hopefully) + some tweaks to the log display
- Nicer Exception Handling Message box errors for frmReadDVD.
- frmMain Minimize to taskbar no tooltip text exception fixed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1634 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r-- | win/C#/Functions/SystemInfo.cs | 12 |
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;
+ }
}
}
|