Deleting a node from a MMC snapin using ironringsoftware.com library


there is one MMC Library sdk which is the only opensource project I know


it’s from www.ironringsoftware.com ,


it lacks one small thing we encountered today, u can add nodes to the mmc tree but you can’t delete.


behind the scenes it uses the IConsoleNameSpace2 interface.


which do support the remove feature . so if u’ll add the following code to the BaseNode.cs:


public void Remove()


{


     IConsoleNameSpace2 cns = Snapin.ConsoleNameSpace;


    cns.DeleteItem((uint)this.HScopeItem,1);


}


u’ll get a remove which removes all it’s sub nodes too…


 


have fun.

Comments (6)

  1. Anonymous says:

    CodeSmith and a MMC Snapin : ScottW’s ASP.NET WebLog

  2. Alexander Kachalkov says:

    Hi!

    I’ve found that you use MMC Labrary and wanted to ask. Do you implement the support of toolbar?

    Thanks.

  3. Fill free to contact me!

  4. Alexander Kachalkov says:

    mailto:Alexander_Kachalkov@net-burg.com

  5. Initial effects of propecia. Propecia. Pill propecia. Propecia w o prescription. Propecia side effects bad. Initial effects of propecia on hair. Propecia generic. Propecia sexual side effe.