IWDFIoTarget::CancelSentRequestsForFile method

The CancelSentRequestsForFile method cancels all I/O requests that have been sent on behalf of the specified file object.

Syntax


void CancelSentRequestsForFile(
  [in]  IWDFFile *pFile
);

Parameters

pFile [in]

A pointer to the IWDFFile interface for the file object to cancel all I/O requests for.

Return value

None

Examples

The following code example shows a UMDF driver implementation of the IFileCallbackCleanup::OnCleanupFile method that cancels all previously sent I/O requests.


void
CQueue::OnCleanupFile(
        /*[in]*/ IWDFFile*          pFileObject
        )
{
    m_Parent->GetWriteTarget()->CancelSentRequestsForFile(pFileObject);
    m_Parent->GetReadTarget()->CancelSentRequestsForFile(pFileObject);

 return;
}

Requirements

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.5

Header

Wudfddi.h (include Wudfddi.h)

DLL

WUDFx.dll

See also

IWDFIoTarget
IWDFFile

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft