Notifies the data object that that asynchronous data extraction has ended.
Syntax
HRESULT EndOperation(
HRESULT hResult,
IBindCtx *pbcReserved,
DWORD dwEffects
);
Parameters
- hResult
-
[in] An HRESULT value that indicates the outcome of the data extraction. Set to S_OK if successful, or a COM error code otherwise.
- pbcReserved
-
[in] Reserved. Set to NULL.
- dwEffects
-
[in] A DROPEFFECT value that indicates the result of an optimized move. This should be the same value that would be passed to the data object as a CFSTR_PERFORMEDDROPEFFECT format with a normal data extraction operation.
Return Value
Returns S_OK if successful or a COM error value otherwise.
Remarks
EndOperation retrieves the IAsyncOperation pointer stored by IAsyncOperation::SetAsyncMode and passes its parameter values to that interface's IAsyncOperation::EndOperation method. EndOperation then releases the IAsyncOperation pointer.
EndOperation is also responsible for any associated clean-up operations. When finished, EndOperation should notify the drop source through a private interface.
See Also
IAsyncOperation