Windows Media Format SDK banner art
PreviousNext

IWMProfile::AddStream

The AddStream method adds a stream to the profile by copying the stream configuration details into the profile.

Syntax

HRESULT AddStream(
  IWMStreamConfig*  pConfig
);

Parameters

  pConfig

[in]  Pointer to an IWMStreamConfig object.

Return Values

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

Return code Meaning
E_INVALIDARG The pConfig parameter is NULL.
E_OUTOFMEMORY There is not enough available memory.
E_FAIL The method failed for an unspecified reason.

Remarks

Adding a stream copies the configuration into the profile.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.