I've take this from:
ms-help://MS.NETFrameworkSDKv1.1/cptools/html/cpgrfmanagementstronglytypedcl
assgeneratormgmtclassgenexe.htm
using System;
using System.Management;
using ROOT.CIMV2.Win32;
public class App
{
public static void Main()
{
// Enumerate instances of the Win32_process.
// Print the Name property of the instance.
foreach(Process ps in Process.GetInstances())
{
Console.WriteLine(ps.Name);
}
// Initialize the instance of LogicalDisk with
// the WMI instance pointing to logical drive d:.
LogicalDisk dskD = new LogicalDisk(new ManagementPath(
"win32_LogicalDisk.DeviceId=\"d:\""));
Console.WriteLine(dskD.Caption);
}
}
Now, for use LogicalDisk or other like classes I must using ROOT.CIMV2 ...
Or no?
Thanks in advance
"SnakeS" <Sn***********@hotmail.com> wrote in message
news:8g******************@tornado.fastwebnet.it...
When I do:
using ROOT.CIMV2.Win32;
the class there isn't.
This namespace or class I didn't find it.
How i using this classes?