次の方法で共有


IConsole2::UpdateAllViews method

The IConsole2::UpdateAllViews method is called by the snap-in when there is a content change in the result pane. This method can be called either by IComponent or IComponentData.

Syntax

HRESULT UpdateAllViews(
  [in] LPDATAOBJECT lpDataObject,
  [in] LPARAM       data,
  [in] LONG_PTR     hint
);

Parameters

  • lpDataObject [in]
    A pointer to a user-supplied data object.

  • data [in]
    A user-defined value, for example a pointer to the modified content.

  • hint [in]
    A user-defined value, for example information about the type of content change.

Return value

This method can return one of these values.

  • S_OK
    The notification was successfully sent.

  • E_UNEXPECTED
    An unexpected error occurred.

Remarks

This method sends an MMCN_VIEW_CHANGE notification to all instances of IComponent associated with the snap-in instance calling this method. The lpDataObject, data, and hint parameters are passed as the lpDataObject arg, and param for the IComponent::Notify method.

This method should be called from the IConsole2 interface pointer obtained through the snap-in IComponentData implementation.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IConsole3

IConsole2

IToolbar