MMCTask Object object

The MMCTask object represents a task to be added to the taskpad.

An MMCTask object is returned by the GetFirstTask and GetNextTask methods of the MMCCtrl control. The MMCTask object's properties represent the members of the MMC_TASK structure passed in the IEnumTASK::Next method that MMC called when it retrieved the information for that task during the setup of the taskpad. The MMCTask object also has one additional property that represents the snap-in's CLSID.

The MMC taskpad templates use the MMCTask object. To create a custom taskpad that communicates with the snap-in, the taskpad's HTML page should use the GetFirstTask and GetNextTask methods to retrieve the MMCTask objects for all the tasks and add them to the page.

Members

The MMCTask Object object has these types of members:

Properties

The MMCTask Object object has these properties.

Property Description
ActionType
Type of action triggered when a user clicks the task.
ActionURL
URL to which the task links when the user clicks the task. The string can also contain a script instead of a URL.
Used only if ActionType is 1.
Clsid
CLSID of the snap-in that created the task and owns it.
CommandID
Command ID returned to the snap-in when the user clicks the task.
Used only if ActionType is 0.
DisplayObject
MMCDisplayObject object that contains information about the appearance of the task's button.
Help
Description for the task.
Script
Script to run when the user clicks the task.
Used only if ActionType is 2.
ScriptLanguage
Script language of the script specified by the Script property.
Used only if ActionType is 2.
Text
Text label for the task.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
MmcNdMgr.dll