IExtendTaskPad::EnumTasks method (mmc.h)
The IExtendTaskPad::EnumTasks method enables MMC to get a pointer to the IEnumTASK interface of the object that contains the snap-in's tasks.
Syntax
HRESULT EnumTasks(
[in] IDataObject *pdo,
[in] LPOLESTR szTaskGroup,
[out] IEnumTASK **ppEnumTASK
);
Parameters
[in] pdo
A pointer to the data object for the scope item that owns the taskpad.
[in] szTaskGroup
A pointer to a null-terminated string that contains the group name that identifies the taskpad. The group name is the string that follows the hash (#) in the string passed in the ppViewType parameter when MMC calls IComponent::GetResultViewType to display the taskpad. If no group name is specified, szTaskGroup is a NULL string.
[out] ppEnumTASK
A pointer to address of IEnumTASK interface of the object that contains the snap-in's tasks.
Return value
This method can return one of these values.
Remarks
MMC calls this method each time a taskpad from the snap-in is displayed. MMC also calls the method if the snap-in extends another snap-in's taskpad in order to get a pointer to the snap-in's IEnumTASK interface.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | mmc.h |