aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SystemInfo/Win32_OperatingSystem.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-12 17:15:11 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-12 17:15:11 +0200
commit755f37e3e3e553a91dd2c5a7f0ddad8359287a3b (patch)
tree0f9fe447c75a86ff4b647df31bf49b64dd12ee42 /Software/Visual_Studio/Tango.SystemInfo/Win32_OperatingSystem.cs
parente774f9a90fd812a9de8c3efe966a759bee8be703 (diff)
downloadTango-755f37e3e3e553a91dd2c5a7f0ddad8359287a3b.tar.gz
Tango-755f37e3e3e553a91dd2c5a7f0ddad8359287a3b.zip
Working on FSE/PPC monitoring/system info.
Diffstat (limited to 'Software/Visual_Studio/Tango.SystemInfo/Win32_OperatingSystem.cs')
-rw-r--r--Software/Visual_Studio/Tango.SystemInfo/Win32_OperatingSystem.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.SystemInfo/Win32_OperatingSystem.cs b/Software/Visual_Studio/Tango.SystemInfo/Win32_OperatingSystem.cs
new file mode 100644
index 000000000..24b93d92c
--- /dev/null
+++ b/Software/Visual_Studio/Tango.SystemInfo/Win32_OperatingSystem.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Tango.SystemInfo
+{
+ class Win32_OperatingSystem : IWMI
+ {
+ Connection WMIConnection;
+
+ public Win32_OperatingSystem(Connection WMIConnection)
+ {
+ this.WMIConnection = WMIConnection;
+ }
+
+ public IList<SystemObject> GetHardwareInfoList()
+ {
+ return WMIReader.GetPropertyValues(WMIConnection, "select * from Win32_OperatingSystem", "Win32_OperatingSystem");
+ }
+ }
+}