Hardware.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Optimizer
  7. {
  8. public class CPU
  9. {
  10. public string Name { get; set; }
  11. public ByteSize L2CacheSize { get; set; }
  12. public ByteSize L3CacheSize { get; set; }
  13. public UInt32 Cores { get; set; }
  14. public UInt32 Threads { get; set; }
  15. public UInt32 LogicalCpus { get; set; }
  16. public string Virtualization { get; set; }
  17. public string DataExecutionPrevention { get; set; }
  18. public string Stepping { get; set; }
  19. public string Revision { get; set; }
  20. }
  21. public class RAM
  22. {
  23. public string BankLabel { get; set; }
  24. public UInt64 Capacity { get; set; }
  25. public string FormFactor { get; set; }
  26. public string Manufacturer { get; set; }
  27. public string MemoryType { get; set; }
  28. public UInt32 Speed { get; set; }
  29. }
  30. public class VirtualMemory
  31. {
  32. public ByteSize TotalVirtualMemory { get; set; }
  33. public ByteSize AvailableVirtualMemory { get; set; }
  34. public ByteSize UsedVirtualMemory { get; set; }
  35. }
  36. public class GPU
  37. {
  38. public string Name { get; set; }
  39. public ByteSize Memory { get; set; }
  40. public UInt32 ResolutionX { get; set; }
  41. public UInt32 ResolutionY { get; set; }
  42. public UInt32 RefreshRate { get; set; }
  43. public string DACType { get; set; }
  44. public string VideoMemoryType { get; set; }
  45. }
  46. public class Disk
  47. {
  48. public UInt32 BytesPerSector { get; set; }
  49. public string FirmwareRevision { get; set; }
  50. public string MediaType { get; set; }
  51. public string Model { get; set; }
  52. public ByteSize Capacity { get; set; }
  53. }
  54. public class Volume
  55. {
  56. public UInt64 BlockSize { get; set; }
  57. public ByteSize Capacity { get; set; }
  58. public string Compressed { get; set; }
  59. public string DriveLetter { get; set; }
  60. public string DriveType { get; set; }
  61. public string FileSystem { get; set; }
  62. public ByteSize FreeSpace { get; set; }
  63. public ByteSize UsedSpace { get; set; }
  64. public string Indexing { get; set; }
  65. public string Label { get; set; }
  66. }
  67. public class NetworkDevice
  68. {
  69. public string AdapterType { get; set; }
  70. public string Manufacturer { get; set; }
  71. public string ProductName { get; set; }
  72. public string PhysicalAdapter { get; set; }
  73. public string MacAddress { get; set; }
  74. public string ServiceName { get; set; }
  75. }
  76. public class Keyboard
  77. {
  78. public string Name { get; set; }
  79. public string Layout { get; set; }
  80. public string Status { get; set; }
  81. public UInt16 FunctionKeys { get; set; }
  82. public string Locked { get; set; }
  83. }
  84. public class PointingDevice
  85. {
  86. public string Name { get; set; }
  87. public string Manufacturer { get; set; }
  88. public string Status { get; set; }
  89. public UInt16 Buttons { get; set; }
  90. public string Locked { get; set; }
  91. public string HardwareType { get; set; }
  92. public string PointingType { get; set; }
  93. public string DeviceInterface { get; set; }
  94. }
  95. public class AudioDevice
  96. {
  97. public string ProductName { get; set; }
  98. public string Manufacturer { get; set; }
  99. public string Status { get; set; }
  100. }
  101. public class Motherboard
  102. {
  103. public string Model { get; set; }
  104. public string Manufacturer { get; set; }
  105. public string Chipset { get; set; }
  106. public string Product { get; set; }
  107. public string Version { get; set; }
  108. public string Revision { get; set; }
  109. public string SystemModel { get; set; }
  110. public string BIOSName { get; set; }
  111. public string BIOSManufacturer { get; set; }
  112. public string BIOSVersion { get; set; }
  113. public string BIOSBuildNumber { get; set; }
  114. }
  115. }