Compartir a través de


MMCN_EXPAND message

The MMCN_EXPAND notification message is sent to the snap-in's IComponentData implementation when a scope item must be expanded or collapsed.

Parameters

lpDataObject [in]

A pointer to the data object of the scope item that must be expanded or collapsed.

arg [in]

TRUE if the folder is being expanded; FALSE if the folder is being collapsed.

param [in]

The HSCOPEITEM of the item that must be expanded or collapsed.

Return value

S_OK

The snap-in successfully handled the notification.

S_FALSE

The snap-in does not handle the notification. MMC then performs a default operation for the notification.

Remarks

MMC sends the MMCN_EXPAND notification the first time it must display a scope item's children in either the scope or result pane. The notification is not sent each time the item is visually expanded or collapsed.

On receipt of this notification the snap-in should enumerate the children (subcontainers only) of the specified scope item, if any, using IConsoleNameSpace2 methods. Subsequently, if a new item is added to or deleted from this scope object through some external means, that item should also be added to or deleted from the console's namespace using IConsoleNameSpace2 methods.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Mmc.h

See also

IComponentData::Notify

IConsoleNameSpace2