Click here to Skip to main content
15,917,875 members
Home / Discussions / C#
   

C#

 
QuestionMessengerAPI Pin
shopi3026-Jan-09 10:12
shopi3026-Jan-09 10:12 
AnswerRe: MessengerAPI Pin
Xmen Real 26-Jan-09 13:58
professional Xmen Real 26-Jan-09 13:58 
Questionapplicationsecurityinfo class Pin
bolly-8126-Jan-09 9:53
bolly-8126-Jan-09 9:53 
AnswerRe: applicationsecurityinfo class Pin
vaghelabhavesh26-Jan-09 10:19
vaghelabhavesh26-Jan-09 10:19 
QuestionImpersonation With Md5 Pin
asafbs200426-Jan-09 9:25
asafbs200426-Jan-09 9:25 
AnswerRe: Impersonation With Md5 Pin
0x3c026-Jan-09 10:00
0x3c026-Jan-09 10:00 
AnswerRe: Impersonation With Md5 Pin
Dave Kreskowiak26-Jan-09 16:09
mveDave Kreskowiak26-Jan-09 16:09 
Questionthe result of DefragAnalysis method in c# Pin
SAKRA26-Jan-09 7:06
SAKRA26-Jan-09 7:06 
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!
AnswerRe: the result of DefragAnalysis method in c# Pin
musefan26-Jan-09 7:25
musefan26-Jan-09 7:25 
AnswerRe: the result of DefragAnalysis method in c# Pin
ChunkyStool28-Jan-09 19:00
ChunkyStool28-Jan-09 19:00 
QuestionC# Threading help!! cant seem to get going.... Pin
alexleslie26-Jan-09 6:07
alexleslie26-Jan-09 6:07 
AnswerRe: C# Threading help!! cant seem to get going.... Pin
EliottA26-Jan-09 6:23
EliottA26-Jan-09 6:23 
AnswerRe: C# Threading help!! cant seem to get going.... Pin
Giorgi Dalakishvili26-Jan-09 6:24
mentorGiorgi Dalakishvili26-Jan-09 6:24 
GeneralRe: C# Threading help!! cant seem to get going.... Pin
EliottA26-Jan-09 6:27
EliottA26-Jan-09 6:27 
AnswerRe: C# Threading help!! cant seem to get going.... Pin
#realJSOP26-Jan-09 11:26
professional#realJSOP26-Jan-09 11:26 
QuestionDifficulty communicating with capture Device Pin
Alex_xso26-Jan-09 5:41
Alex_xso26-Jan-09 5:41 
AnswerCP: repeat post for like 3 times now. Pin
EliottA26-Jan-09 5:54
EliottA26-Jan-09 5:54 
Questionswitch off computer Pin
likefood26-Jan-09 5:39
likefood26-Jan-09 5:39 
AnswerRe: switch off computer Pin
EliottA26-Jan-09 5:55
EliottA26-Jan-09 5:55 
GeneralRe: switch off computer Pin
User 665826-Jan-09 6:00
User 665826-Jan-09 6:00 
GeneralRe: switch off computer Pin
likefood26-Jan-09 6:35
likefood26-Jan-09 6:35 
GeneralRe: switch off computer Pin
likefood26-Jan-09 6:35
likefood26-Jan-09 6:35 
AnswerRe: switch off computer Pin
Giorgi Dalakishvili26-Jan-09 6:10
mentorGiorgi Dalakishvili26-Jan-09 6:10 
GeneralRe: switch off computer Pin
likefood26-Jan-09 6:36
likefood26-Jan-09 6:36 
QuestionRe: switch off computer Pin
likefood26-Jan-09 8:16
likefood26-Jan-09 8:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.