Export (0) Print
Expand All

IWMWriter::SetInputProps method

The SetInputProps method specifies the media properties of an input stream.

Syntax


HRESULT SetInputProps(
  [in]  DWORD dwInputNum,
  [in]  IWMInputMediaProps *pInput
);

Parameters

dwInputNum [in]

DWORD containing the input number.

pInput [in]

Pointer to an IWMInputMediaProps interface. See Remarks.

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

dwInputNum is greater than the highest index number.

E_OUTOFMEMORY

There is not enough available memory.

E_UNEXPECTED

The method failed for an unspecified reason.

 

Remarks

Manipulating the IWMInputMediaProps object has no effect on the writer until the application calls this method to configure the input.

Specify NULL for pInput if the input contains compressed samples that will be written directly to the new stream (using IWMWriterAdvanced::WriteStreamSample) without being recompressed.

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

Assigning Input Formats
IWMWriter Interface
IWMWriter::GetInputCount
IWMWriter::GetInputProps

 

 

Community Additions

ADD
Show:
© 2014 Microsoft