Skip to content

Latest commit

 

History

History
89 lines (74 loc) · 2.41 KB

nf-mfapi-mfcancelcreatefile.md

File metadata and controls

89 lines (74 loc) · 2.41 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mfapi.MFCancelCreateFile
MFCancelCreateFile function (mfapi.h)
Cancels an asynchronous request to create a byte stream from a file.
MFCancelCreateFile
MFCancelCreateFile function [Media Foundation]
b3c0cad8-d578-4752-a2ea-0aa5c35a181a
mf.mfcancelcreatefile
mfapi/MFCancelCreateFile
mf\mfcancelcreatefile.htm
mf
b3c0cad8-d578-4752-a2ea-0aa5c35a181a
12/05/2018
MFCancelCreateFile, MFCancelCreateFile function [Media Foundation], b3c0cad8-d578-4752-a2ea-0aa5c35a181a, mf.mfcancelcreatefile, mfapi/MFCancelCreateFile
mfapi.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Mfplat.lib
Mfplat.dll
Windows
19H1
MFCancelCreateFile
mfapi/MFCancelCreateFile
c++
APIRef
kbSyntax
DllExport
mfplat.dll
MFCancelCreateFile

MFCancelCreateFile function

-description

Cancels an asynchronous request to create a byte stream from a file.

-parameters

-param pCancelCookie [in]

A pointer to the IUnknown interface of the cancellation object. This pointer is received in the ppCancelCookie parameter of the MFBeginCreateFile function.

-returns

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

Return code Description
S_OK
The function succeeded.

-remarks

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

-see-also

Media Foundation Functions