+ private void btn_scan_log_Click(object sender, EventArgs e)\r
+ {\r
+ SetScanMode();\r
+ }\r
+ private void btn_encode_log_Click(object sender, EventArgs e)\r
+ {\r
+ SetEncodeMode();\r
+ }\r
+ #endregion\r
+\r
+ #region System Information\r
+ /// <summary>\r
+ /// Returns the total physical ram in a system\r
+ /// </summary>\r
+ /// <returns></returns>\r
+ public uint TotalPhysicalMemory()\r
+ {\r
+ Win32.MEMORYSTATUS memStatus = new Win32.MEMORYSTATUS();\r
+ Win32.GlobalMemoryStatus(ref memStatus);\r
+\r
+ uint MemoryInfo = memStatus.dwTotalPhys;\r
+ MemoryInfo = MemoryInfo / 1024 / 1024;\r
+\r
+ return MemoryInfo;\r
+ }\r
+\r
+ /// <summary>\r
+ /// Get the number of CPU Cores\r
+ /// </summary>\r
+ /// <returns>Object</returns>\r
+ public Object getCpuCount()\r
+ {\r
+ RegistryKey RegKey = Registry.LocalMachine;\r
+ RegKey = RegKey.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");\r
+ return RegKey.GetValue("ProcessorNameString");\r
+ }\r
+\r
+ /// <summary>\r
+ /// Get the System screen size information.\r
+ /// </summary>\r
+ /// <returns>System.Windows.Forms.Scree</returns>\r
+ public Screen screenBounds()\r
+ {\r
+ return Screen.PrimaryScreen;\r
+ }\r
+ #endregion\r
+\r
+ protected override void OnClosing(CancelEventArgs e)\r
+ {\r
+ _kilLThread = true;\r
+ _monitor.Interrupt();\r
+ _monitor.Join();\r
+ e.Cancel = true;\r
+ this.Dispose();\r
+ base.OnClosing(e);\r
+ }\r