Skip to main content
IWMWriterPostView::GetPostViewFormat method

The GetPostViewFormat method retrieves the media properties for the specified output stream and output format.

Syntax


HRESULT GetPostViewFormat(
  [in]  WORD          wStreamNumber,
  [in]  DWORD         dwFormatNumber,
  [out] IWMMediaProps **ppProps
);

Parameters

wStreamNumber [in]

WORD containing the stream number.

dwFormatNumber [in]

DWORD containing the format number.

ppProps [out]

Pointer to a pointer to an IWMMediaProps interface.

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 ppProps.

E_OUTOFMEMORY

Not enough memory to complete the task.

 

Remarks

This method can be used along with GetPostViewFormatCount to determine 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