WmiSharp

C#, Nuget

This page is under development

# WmiSharp This project is archived and no longer being updated, there are better alternatives. Try taking a look at one of these maybe they can suit your needs better. 1. [ORMi](https://github.com/nicoriff/ORMi) 2. [WmiLight](https://github.com/MartinKuschnik/WmiLight) ## Model Classes Heres some examples of when this project was still under development. ```csharp [WmiClass("Win32_LogicalDisk")] public class LogicalDrive { [WmiProperty("DeviceId")] public string DriveLetter { get; set; } public ulong FreeSpace { get; set; } public ulong Size { get; set; } [WmiProperty("VolumeName")] public string Name { get; set; } } ``` ```csharp [WmiClass(name: "Win32_OperatingSystem")] public class OperatingSystem { public string Version { get; set; } [WmiProperty("FreePhysicalMemory")] public ulong PhysicalMemoryFree { get; set; } [WmiProperty("TotalVisibleMemorySize")] public ulong PhysicalMemoryAmount { get; set; } [WmiProperty("OSArchitecture")] public string Architecture { get; set; } [WmiIgnore] public ulong PhysicalMemoryInUse { get { return this.PhysicalMemoryAmount - this.PhysicalMemoryFree; } } } ```