Windows Media Format SDK banner art
PreviousNext

IWMWriterSink::OnDataUnit

The OnDataUnit method is called when the writer has finished sending a data unit.

Syntax

HRESULT OnDataUnit(
  INSSBuffer*  pDataUnit
);

Parameters

  pDataUnit

[in]  Pointer to an INSSBuffer object containing the data unit.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Meaning
E_FAIL The method failed for an unspecified reason.
E_POINTER The pDataUnit parameter is NULL.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.