Skip to main content
IWMWriterPostView::GetPostViewFormatCount method

The GetPostViewFormatCount method is used for ascertaining all possible format types supported for the specified stream.

Syntax


HRESULT GetPostViewFormatCount(
  [in]  WORD  wStreamNumber,
  [out] DWORD *pcFormats
);

Parameters

wStreamNumber [in]

WORD containing the stream number.

pcFormats [out]

Pointer to a count of the output formats.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_INVALIDARG

NULL value passed in to pcFormats.

 

Remarks

This method can be used along with GetPostViewFormat to ascertain all possible format types supported by this output on the reader.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Version

Windows Media Format 7 SDK, or later versions of the SDK

Header

Wmsdkidl.h (include Wmsdk.h)

Library

Wmvcore.lib;
WMStubDRM.lib (if you use DRM)

See also

IWMWriterPostView Interface