summaryrefslogtreecommitdiffstats
path: root/win/C#/HandBrake.ApplicationServices/Functions/System.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-03-13 16:44:49 +0000
committersr55 <[email protected]>2011-03-13 16:44:49 +0000
commitb6a5d4eba610711d15ed99dc5f2e9e126ce06086 (patch)
treee72eb5be161c3ac9b01bbc3b3efcd4ab8f91e06c /win/C#/HandBrake.ApplicationServices/Functions/System.cs
parent38f64c238720fe0524f99b380fbb1a8c795a7586 (diff)
Rename Direction C# to CS
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3846 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices/Functions/System.cs')
-rw-r--r--win/C#/HandBrake.ApplicationServices/Functions/System.cs56
1 files changed, 0 insertions, 56 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Functions/System.cs b/win/C#/HandBrake.ApplicationServices/Functions/System.cs
deleted file mode 100644
index 9b08a4be2..000000000
--- a/win/C#/HandBrake.ApplicationServices/Functions/System.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-/* System.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
-
-namespace HandBrake.ApplicationServices.Functions
-{
- using System.Windows.Forms;
-
- using Microsoft.Win32;
-
- /// <summary>
- /// The System Information.
- /// </summary>
- public class SystemInfo
- {
- /// <summary>
- /// Gets the total physical ram in a system
- /// </summary>
- /// <returns>The total memory in the system</returns>
- public static ulong TotalPhysicalMemory
- {
- get
- {
- Win32.MEMORYSTATUSEX memStat = new Win32.MEMORYSTATUSEX { dwLength = 64 };
- Win32.GlobalMemoryStatusEx(ref memStat);
-
- ulong value = memStat.ullTotalPhys / 1024 / 1024;
- return value;
- }
- }
-
- /// <summary>
- /// Gets the number of CPU Cores
- /// </summary>
- /// <returns>Object</returns>
- public static object GetCpuCount
- {
- get
- {
- RegistryKey regKey = Registry.LocalMachine;
- regKey = regKey.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
- return regKey == null ? 0 : regKey.GetValue("ProcessorNameString");
- }
- }
-
- /// <summary>
- /// Gets the System screen size information.
- /// </summary>
- /// <returns>System.Windows.Forms.Scree</returns>
- public static Screen ScreenBounds
- {
- get { return Screen.PrimaryScreen; }
- }
- }
-} \ No newline at end of file