Completes an asynchronous write operation.
public:
HRESULT EndWrite(
IMFAsyncResult *pResult,
ULONG *pcbWritten
)
pResult
Type: IMFAsyncResult *
Pointer to the IMFAsyncResult interface. Pass in the same pointer that your callback object received in the IMFAsyncCallback::Invoke method.
pcbWritten
Type: ULONG *
[out] Receives the number of bytes that were written.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Refer to Media Foundation return codes.
Call this method when the IMFByteStream::BeginWrite method completes asynchronously.
Header: Declared in mfobjects.h (include mfidl.h).
Library: Use Mfuuid.lib.