IComponent::Notify method (mmc.h)

The IComponent::Notify method notifies the snap-in of actions taken by the user.

Syntax

HRESULT Notify(
  [in] LPDATAOBJECT    lpDataObject,
  [in] MMC_NOTIFY_TYPE event,
       LPARAM          arg,
       LPARAM          param
);

Parameters

[in] lpDataObject

A pointer to the data object of the currently selected item.

[in] event

Identifies an action taken by a user. IComponent::Notify can receive the following notifications:

MMCN_ACTIVATE

MMCN_ADD_IMAGES

MMCN_BTN_CLICK

MMCN_COLUMN_CLICK

MMCN_COLUMNS_CHANGED

MMCN_CONTEXTHELP

MMCN_DBLCLICK

MMCN_DELETE

MMCN_DESELECT_ALL

MMCN_FILTERBTN_CLICK

MMCN_FILTER_CHANGE

MMCN_INITOCX

MMCN_LISTPAD

MMCN_MINIMIZED

MMCN_PASTE

MMCN_PRINT

MMCN_PROPERTY_CHANGE

MMCN_QUERY_PASTE

MMCN_REFRESH

MMCN_RENAME

MMCN_RESTORE_VIEW

MMCN_SELECT

MMCN_SHOW

MMCN_SNAPINHELP

MMCN_VIEW_CHANGE

arg

Depends on the notification type.

param

Depends on the notification type.

Return value

This method can return one of these values.

Remarks

For more information, see the individual notifications. The snap-in should return S_FALSE for any notification it does not handle.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h

See also

IComponent

IComponentData

IConsole2

IExtendControlbar::ControlbarNotify