HP Operations Manager for Windows

_IOvRemoteAgentEvents::OnCancel


Event: Acknowledge cancellation of asynchronous administration.

void OnCancel(
[in] BSTR bstrAcknowledgeMsg,
[out] VARIANT* pvarCancel
);

Parameters

bstrAcknowledgeMsg
Acknowledge message for canceling.

pvarCancel
When the client sets this parameter to VARIANT_FALSE in the event handler implementation, the asynchronous method will not be canceled.

Returning Parameter

None.

HRESULT Return Values

None.

Description

The OnOutOfMemory event is executed when the Cancel method of the interface IOvRemoteAgent is called. Clients should print the message contained in the parameter bstrAcknowledgeMsg. The message asks users whether they are absolutely sure they want to cancel (that is, set the parameter pvarCancel to VARIANT_TRUE to initiate canceling). If the user does not want to cancel, set the parameter pvarCancel to VARIANT_FALSE. See also the description of the Cancel method of the IOvRemoteAgent interface.