IMFSourceResolver::CancelObjectCreation method (mfidl.h)

Cancels an asynchronous request to create an object.

Syntax

HRESULT CancelObjectCreation(
  [in] IUnknown *pIUnknownCancelCookie
);

Parameters

[in] pIUnknownCancelCookie

Pointer to the IUnknown interface that was returned in the ppIUnknownCancelCookie parameter of the IMFSourceResolver::BeginCreateObjectFromByteStream or IMFSourceResolver::BeginCreateObjectFromURL method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

You can use this method to cancel a previous call to BeginCreateObjectFromByteStream or BeginCreateObjectFromURL. Because these methods are asynchronous, however, they might be completed before the operation can be canceled. Therefore, your callback might still be invoked after you call this method.

Note  This method cannot be called remotely.
 

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFSourceResolver

Source Resolver