Skip to main content
IWMWriterPostView::SetPostViewProps method

The SetPostViewProps method specifies the format for the specified output stream.

Syntax


HRESULT SetPostViewProps(
  [in] WORD          wStreamNumber,
  [in] IWMMediaProps *pOutput
);

Parameters

wStreamNumber [in]

WORD containing the stream number.

pOutput [in]

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.

NS_E_INVALID_STREAM

The stream number specified by wStreamNumber is not valid.

E_OUTOFMEMORY

The method was unable to create an internal structure.

 

Remarks

It is not possible to resize the video output using postview properties.

SetPostViewProps fails if IWMWriter::BeginWriting has been called. If any postview properties need to be changed, this should be done before calling BeginWriting.

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
IWMWriterPostView::GetPostViewProps