hi guys... i have a problem with the defraganalysis method...
ManagementClass objMC = new ManagementClass("Win32_Volume");
ManagementObjectCollection objMOC = objMC.GetInstances();
foreach (ManagementObject objMO in objMOC)
{
int result = Convert.ToInt32(objMO.InvokeMethod("defraganalysis", new object[] { true }));
if(objMO["Name"].ToString().Equals("C:\\")) {
break;
}
}
this code works fine, i got the result number but how can i get the properties of the defraganalysis object? as you can see http://msdn.microsoft.com/en-us/library/aa389827(VS.85).aspx[^] ms sais:
uint32 DefragAnalysis(
[out] boolean DefragRecommended,
[out] object DefragAnalysis
);
yes, but how can i get the out parameters?? i've searched the whole internet, but i couldnt find the answer. thx a lot!