IMFByteStream::EndWrite Method

Completes an asynchronous write operation.

Syntax

public:
HRESULT EndWrite(
         IMFAsyncResult *pResult,
         ULONG *pcbWritten
)  

Parameters

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.

Return value

Type: HRESULT 

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Refer to Media Foundation return codes.

Remarks

Call this method when the IMFByteStream::BeginWrite method completes asynchronously.

Requirements

Header: Declared in mfobjects.h (include mfidl.h).

Library: Use Mfuuid.lib.