Compartilhar via


MMCN_QUERY_PASTE message

The MMCN_QUERY_PASTE notification message is sent to a snap-in's IComponent implementation to verify that the snap-in can paste the items from the given data object.

Parameters

lpDataObject

The data object of the selected item provided by the snap-in.

arg

The data object of the item(s) provided by the source snap-in that must be pasted.

param

Not used prior to MMC 2.0. In MMC 2.0, param is a pointer to DWORD. To set Copy ("Copy Here") as the default drag-and-drop operation, your snap-in must set *param equal to MMC_DEFAULT_OPERATION_COPY. For more information, see Using Copy as the Default Drag and Drop Verb.

Return value

S_OK

The data can be pasted.

S_FALSE

The data cannot be pasted.

Remarks

A snap-in must handle this notification and return S_OK in order to enable the Paste menu item and toolbar button. Unlike other standard verbs, the state of the MMC_VERB_PASTE verb does not enable pasting, but informs MMC that the snap-in should be sent the MMCN_QUERY_PASTE notification.

Requirements

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

See also

MMCN_PASTE

MMCN_CANPASTE_OUTOFPROC

Drag and Drop

Multiselection

Using Copy as the Default Drag and Drop Verb