IWMPMedia::get_imageSourceWidth method

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

Syntax


HRESULT get_imageSourceWidth(
  [out] long *pWidth
);

Parameters

pWidth [out]

Pointer to a long that specifies the width.

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.

 

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

Wmp.h

DLL

Wmp.dll

See also

IWMPMedia Interface

 

 

Show: