Windows Media Format SDK banner art
PreviousNext

IWMWriterSink::AllocateDataUnit

The AllocateDataUnit method allocates memory space for a Windows Media data unit.

Syntax

HRESULT AllocateDataUnit(
  DWORD  cbDataUnit,
  INSSBuffer**  ppDataUnit
);

Parameters

  cbDataUnit

[in]  Size of the ppDataUnit buffer.

  ppDataUnit

[out]  Pointer to a 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_POINTER The cbDataUnit and/or ppDataUnit parameter is NULL.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.