Share via


ISBE2Crossbar::GetInitialProfile method (sbe.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

Gets the initial profile that lists the media types that are present in the currently loaded WTV file. The media types in the profile correspond to the active pins on a Stream Buffer Source filter at the time the currently loaded WTV file is created. The profile is fixed per loaded WTV file and does not change while the filter has a WTV file loaded . However, if the crossbar is not in default profile mode, you can call the SetOutputProfile method to set a new profile for the crossbar. To disable default profile mode, call the EnableDefaultMode method without the DEF_MODE_PROFILE flag.

Syntax

HRESULT GetInitialProfile(
  [out] ISBE2MediaTypeProfile **ppProfile
);

Parameters

[out] ppProfile

Receives a pointer to the ISBE2MediaTypeProfile interface that implements the profile.

      The caller is responsible for releasing this interface. You can use this pointer to create a custom profile that you pass to the <a href="/previous-versions/windows/desktop/api/sbe/nf-sbe-isbe2crossbar-setoutputprofile">SetOutputProfile</a> method.

Return value

Returns an HRESULT value. Possible values include the following.

Return value Description
S_OK
Success.
E_POINTER
Null pointer argument.
E_FAIL
Empty initial profiles.

Requirements

Requirement Value
Minimum supported client Windows�7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header sbe.h

See also

ISBE2Crossbar

ISBE2MediaTypeProfile

ISBE2SpanningEvent

Stream Buffer Sink2 Filter