IWMMutualExclusion2::AddStreamForRecord method
The AddStreamForRecord method adds a stream to a record created with IWMMutualExclusion2::AddRecord.
Syntax
HRESULT AddStreamForRecord(
WORD wRecordNumber,
WORD wStreamNumber
);
Parameters
wRecordNumber
WORD containing the number of the record to which to add the stream.
wStreamNumber
WORD containing the stream number you want to add.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
|
The method is unable to allocate memory for the new stream number. |
|
wRecordNumber contains an invalid record number. |
|
The method is unable to access the record for an unspecified reason. |
Remarks
Record numbers are assigned sequentially.
Requirements
| Minimum supported client | Windows 2000 Professional [desktop apps only],Windows Media Format 9 Series SDK, or later versions of the SDK |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | wmsdkidl.h (include Wmsdk.h) |
| Library | Wmvcore.lib; WMStubDRM.lib (if you use DRM) |