mmc3

How to get rid of the "Console Root" node in a MMC 3.0 snapin?

I've been creating snapins with the new MMC 3.0 classes and C#. I can't seem to find any examples of how to get rid of the "Console Root" node when creating the *.msc files. I looked through the examples in the SDK, but I can't seem to find anything for this. I have seen other snapins that do what I want, but I can't tell what version o...

Updating The Status Bar Of An MMC Snapin

I'm writing an MMC snap-in that grabs some data from a database and puts it into a form. I want to update the status line to say how many records were found. I have the ASyncStatus object, but calling Complete, like the example code does, results in nothing. I'm stumped. I'm doing the call from a form, whereas the example code does it f...

Benefits of developing MMC snap-ins instead of traditional GUI apps

What are the benefits of developing MMC snap-ins instead of traditional GUI apps? AFAIK the MMC snap-ins can be loaded remotely to control some server applications but I have never dived deep in this approach. What are the pros and cons of MMC snap-in approach over traditional Win Forms (or WPF) GUI applications? And btw lately PowerShe...

Add a mmc taskpad programatically

I am writing an mmc application in C#. How can I add a Taskpad view to which I cann add Tasks (like running a shell application or a web page) in my program? I can achieve the same using HTML view, however, I would like the same look as I get when I add the tasks manually using the mmc Taskpad wizard. ...

Can I provide localized CHM files for an MMC 3.0 snap-in on Windows 2003?

Hi all, I am developing a MMC 3.0 snap-in using C#. I would like my snap-in to automatically localize itself according to the current language, i.e. on a Spanish OS, the snap-in should display in Spanish and should use a Spanish help file. Since my snap-in is a .NET application, GUI localisation is no problem. However, I am having trou...

I have an MMC snapin and several extension snapins. What defines the order that the extension snapins are displayed in, I would like to control this order

When loading the primary snapin the extension snapin nodes appear in some defined order, but I cannot see what defines the order. ...

MMC Extension Snap-in order

Anyway I can reorder the extension snapins of an MMC 3.0 snapin? I have two snapins one being 3.0 and one being 2.0. The 3.0 snapin always appears before the 2.0 becuase in the registry it appears like "FX:{GUID}" where the 2.0 appears as "{GUID}" and I belive it shows the snapins alphbetically based on guid. ...

MMC 3.0; Need an IWin32Window

In my ScopeNode-derived class, I want to P/Invoke something that requires an HWND (and won't accept NULL). How do I get hold of a window handle (or an IWin32Window) in this situation? ...

How do I enable visual style backgrounds in a property page?

When a Control is shown in a TabControl, it can set the UseVisualStyleBackColor property of the TabPage to true in order to show properly in the tab control rather than just a solid colour fill. However, when a Control is shown in the management console as part of a PropertyPage, its parent is a PropertyPageContainerControl rather than ...

COM Exception Receiving WMI Event in MMC Snapin

I am attempting to create an MMC snapin that among other things, will receive and display log events that are fired from my service. I have created the watcher and it fires correctly, but when I try to add nodes to my MmcListView, I am getting a COMException which says "COM object that has been separated from its underlying RCW cannot b...

MMC 3.0 C++ Development and Hosting Windows Forms

Here it says that MMC 3.0 provides Windows forms hosting capability. However all examples and resources are .NET framework targeted. So I wonder where this capability exists - native level or managed wrapper level? I know of Microsoft.ManagementConsole.dll but that is the managed world. Does MMC 3.0 really support Windows Forms natively ...

MMC 3.0 snap in development and 'connect to another computer...' dialog

Hello, I'm in the process of developing a custom MMC 3.0 snap-in and was wondering if there is some built in SDK/API way of connecting to another computer running the same snap-in? If so, can someone provide some code samples or links to tutorials on how this is possible? If it is not possible, what do you recommend to use for commun...

MMC Snapin development: 'MMC not responding' - Is there a timeout that can be set for debugging?

So I'm writing a snapin for MMC 3. Quite often I have the debugger attached and I'm stepping through some code. MMC has some kind of a fail safe for misbehaving snapins that automatically unloads them after a timeout. The message is 'This snap-in is not responding'. After that MMC can behave as though your snap-in has been unloaded. fai...

How to detect the close event of MMC 3.0 SnapIn written in C#

Folks, I am creating a MMC3.0 SnapIn program with C#. There I have some scope nodes and I have FormViewDescription's where I used C# UserControl instances to display some data. And my intent is, user must see and update those data into the UserControl and there is a Save button onto that UserControl which user should press at the end of...

Undocumented SCSI sense/ASC/ASCQ error code

A bit specialist this one, I'm afraid. Any clues gratefully received. O/S is Windows 7 x32/x64 When writing correctly formatted CD-Text to the lead-in of a USB CD/CD-RW the device returns SK 0x04 ASC 0x08 ASCQ 0x05 This is not documented in the MMC 3-5 specs. Does anyone know what it means? The resulting CD does contain CD-Text as e...

Creating MMC Snap-Ins for console application and windows service

Hi guys I need to have a standard management gui ( look and feel ) and lately I've been looking into mmc. Msdn and other free tutorials provides the installation and simple implementation of a snap in. I'm confused right now on how I can integrate it with my production applications( console and windows service ). Do I need to set a com...