IAsyncOperation::EndOperation Method
IAsyncOperation::EndOperation Method

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
© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View