aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SystemInfo/Win32_OperatingSystem.cs
blob: 24b93d92ca012777d803503002a12bb847ef4c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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");
        }
    }
}