-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathSgmlSystem.cs
More file actions
27 lines (23 loc) · 712 Bytes
/
Copy pathSgmlSystem.cs
File metadata and controls
27 lines (23 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Text;
using System.Management;
namespace SimplexCore
{
public static partial class Sgml
{
static ManagementObjectSearcher mos = new ManagementObjectSearcher();
public static int system_get_ram()
{
mos.Query = new ObjectQuery("select * from Win32_Processor");
ManagementObjectCollection moc = mos.Get();
foreach (ManagementObject m in moc)
{
string s = m["Name"].ToString();
string ss = m["NumberOfCores"].ToString();
string sss = m["MaxClockSpeed"].ToString();
}
return 0;
}
}
}