Esempio n. 1
0
        public static int Main(string[] args)
        {
            ManagementObject diskC = new ManagementObject("Win32_LogicalDisk='C:'");
            ManagementObject diskD = new ManagementObject("Win32_LogicalDisk='D:'");

            Console.WriteLine(diskC.CompareTo(diskD, ComparisonSettings.IncludeAll));

            ManagementObject anotherDiskC = new ManagementObject("Win32_LogicalDisk='C:'");

            Console.WriteLine(diskC.CompareTo(diskC, ComparisonSettings.IncludeAll));
            return(0);
        }