Поделиться через


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

  • Anonymous
    April 24, 2003
    CodeSmith and a MMC Snapin : ScottW's ASP.NET WebLog
  • Anonymous
    October 01, 2003
    Hi!
    I've found that you use MMC Labrary and wanted to ask. Do you implement the support of toolbar?
    Thanks.
  • Anonymous
    October 01, 2003
    Fill free to contact me!
  • Anonymous
    October 01, 2003
    Alexander_Kachalkov@net-burg.com
  • Anonymous
    August 03, 2008
    The comment has been removed
  • Anonymous
    June 08, 2009
    PingBack from http://hairgrowthproducts.info/story.php?id=6483