IComponentData::Notify method

The IComponentData::Notify method notifies the snap-in of actions performed by the user.

Syntax


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

Parameters

lpDataObject [in]

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

event [in]

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

MMCN_BTN_CLICK

MMCN_DELETE

MMCN_EXPAND

MMCN_EXPANDSYNC

MMCN_PRELOAD

MMCN_PROPERTY_CHANGE

MMCN_REMOVE_CHILDREN

MMCN_RENAME

arg [in]

Depends on the notification type.

param [in]

Depends on the notification type.

Return value

This method can return one of these values.

S_OK

Depends on the notification type.

S_FALSE

Depends on the notification type. The snap-in should return S_FALSE for any notification it does not handle. MMC then performs a default operation for the notification.

For the following notification, S_FALSE is defined, and the snap-in should return it when necessary:

  • MMCN_RENAME
E_UNEXPECTED

An unexpected error occurred. Be aware that MMC will not perform the default operation for the notification if the snap-in returns E_UNEXPECTED or any other error code.

Remarks

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

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Mmc.h

See also

IComponent
IComponentData
IConsole2

 

 

Show:
© 2015 Microsoft