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.

IMFByteStreamHandler::CancelObjectCreation method

Cancels the current request to create a media source.

Syntax


HRESULT CancelObjectCreation(
  [in] IUnknown *pIUnknownCancelCookie
);

Parameters

pIUnknownCancelCookie [in]

Pointer to the IUnknown interface that was returned in the ppIUnknownCancelCookie parameter of the IMFByteStreamHandler::BeginCreateObject method.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

 

Remarks

You can use this method to cancel a previous call to BeginCreateObject. Because that method is asynchronous, however, it might be completed before the operation can be canceled. Therefore, your callback might still be invoked after you call this method.

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

IMFByteStreamHandler
Scheme Handlers and Byte-Stream Handlers

 

 

Show:
© 2017 Microsoft