Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMFSourceResolver::CancelObjectCreation method

Cancels an asynchronous request to create an object.

Syntax


HRESULT CancelObjectCreation(
  [in] IUnknown **ppIUnknownCancelCookie
);

Parameters

ppIUnknownCancelCookie [in]

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

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

IMFSourceResolver
Source Resolver

 

 

Show:
© 2017 Microsoft