diff options
Diffstat (limited to 'win/C#/Functions/System.cs')
-rw-r--r-- | win/C#/Functions/System.cs | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/win/C#/Functions/System.cs b/win/C#/Functions/System.cs index 83882fe4c..1af1170a2 100644 --- a/win/C#/Functions/System.cs +++ b/win/C#/Functions/System.cs @@ -1,21 +1,22 @@ /* 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. */
-
-using System;
-using System.Windows.Forms;
-using Microsoft.Win32;
+ 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.Functions
{
- class SystemInfo
+ using System.Windows.Forms;
+ using Microsoft.Win32;
+
+ /// <summary>
+ /// The System Information.
+ /// </summary>
+ public class SystemInfo
{
/// <summary>
- /// Returns the total physical ram in a system
+ /// Gets the total physical ram in a system
/// </summary>
- /// <returns></returns>
+ /// <returns>The total memory in the system</returns>
public static uint TotalPhysicalMemory
{
get
@@ -24,17 +25,17 @@ namespace Handbrake.Functions Win32.GlobalMemoryStatus(ref memStatus);
uint memoryInfo = memStatus.dwTotalPhys;
- memoryInfo = memoryInfo/1024/1024;
+ memoryInfo = memoryInfo / 1024 / 1024;
return memoryInfo;
}
}
/// <summary>
- /// Get the number of CPU Cores
+ /// Gets the number of CPU Cores
/// </summary>
/// <returns>Object</returns>
- public static Object GetCpuCount
+ public static object GetCpuCount
{
get
{
@@ -45,7 +46,7 @@ namespace Handbrake.Functions }
/// <summary>
- /// Get the System screen size information.
+ /// Gets the System screen size information.
/// </summary>
/// <returns>System.Windows.Forms.Scree</returns>
public static Screen ScreenBounds
|