views:

166

answers:

1

Is there a way to host an MMC snapin in an application? Specifically, we have an "Enterprise Management Application" that we use to manage our applications / services, and we want to add certain functionality to this utility that is already implemented as MMC snapins. It would be great if we could just host these configured snapins in our existing application instead of having to reinvent the wheel.

I see plenty of info out there on writing MMC snapins, but absolutely nothing on hosting them. Does anyone know if this is possible?

+1  A: 

This is not something I have tried myself, but it should certainly be possible. If you are trying to host your own snap-in it should be much easier. You didn't mention the MMC version of you snap-in, but MMC and snap-ins communicate using a well-defined API. If you want to host your own snap-ins you have some expectations about how this snap-in will be called. You will have to make those calls from your hosting environment, and perhaps you would even have to do some reverse engineering to fully understand how MMC uses your snap-in.

Martin Liversage
I was hoping to host the mmc snapins to save dev time, but since there is no documentation or sample code out there on how to do this, we will probably just reimplement. Creating an mmc snapin host would be an interesting exercise though, and I may do so one day. I will be sure to post the source on the code project if I do!In any case, thanks for your response.
Real John Connor
I am interested in a solution as well. To complicate matters, I need to host the snap-in in a Java App...
Ries
@Ries: MMC uses either COM or .NET for the API depending on the version. You will have to be able to make either COM or .NET calls from Java to achieve what you want. I know too little about Java to tell you if that is possible.
Martin Liversage