Share via


Windows Media Player 11 SDK IWMPMedia::get_imageSourceWidth 

Windows Media Player SDK banner art

Previous Next

IWMPMedia::get_imageSourceWidth

The get_imageSourceWidth method retrieves the width of the current media item in pixels.

Syntax

  

Parameters

pWidth

[out]  Pointer to a long that specifies the width.

Return Values

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

Return code Description
S_OK The method succeeded.

Remarks

If the digital media item is not the current one, this property returns zero.

Before calling this method, you must have read access to the library. For more information, see Library Access.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next