Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

SAKRA

@SAKRA
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • the result of DefragAnalysis method in c#
    S SAKRA

    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!

    C# question csharp visual-studio com help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups