次の方法で共有


Changing a Static Node's Attributes during Loading: Implementation Details

To change a static node attribute when loading a snap-in

  1. Support the CCF_SNAPIN_PRELOADS clipboard format. When saving a console file, MMC calls IDataObject::GetDataHere on each loaded snap-in using this clipboard format. In the snap-in handler for the clipboard format, return TRUE.
  2. Handle the MMCN_PRELOAD notification. MMC calls the IComponentData::Notify method of the snap-in with this notification when the snap-in is loaded from a saved console file. The lpDataObject value passed into the method call is a pointer to the static node's data object. The arg value passed into the call is the handle (an HSCOPEITEM) to the static node. The snap-in can use this handle to modify the attributes of the static node.

Changing a Static Node's Attributes during Loading

Working with the Scope Pane: Interfaces

Working with the Scope Pane: Implementation Details