Export (0) Print
Expand All

IWMPRemoteMediaServices::GetCustomUIMode method

The GetCustomUIMode method is called by Windows Media Player to retrieve the location of a skin file to apply to the Windows Media Player control.

Syntax


HRESULT GetCustomUIMode(
  [out]  BSTR *pbstrFile
);

Parameters

pbstrFile [out]

Pointer to a BSTR containing the location of the skin file.

Return value

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

Value Description
S_OKThe method succeeded.

 

Remarks

This method allows you to customize the user interface of the embedded control by using Windows Media Player skin technology. Skins used in this way can communicate with the host of the control through a scriptable object retrieved automatically by Windows Media Player through the IWMPRemoteMediaServices::GetScriptableObject method.

To apply a skin file to the embedded control, you must call IWMPPlayer.put_uiMode with a value of "custom". Your implementation of GetCustomUIMode must also return a value of "file://" followed by the path and file name of a skin definition file located on the local computer.

The embedded Windows Media Player control does not have to be remoted to use this method.

Windows Media Player 10 Mobile: This method is not supported.

Requirements

Version

Windows Media Player 9 Series or later.

Header

Wmp.h

DLL

Wmp.dll

See also

IWMPRemoteMediaServices Interface
IWMPRemoteMediaServices::GetScriptableObject
Using Skins with the Windows Media Player Control

 

 

Community Additions

ADD
Show:
© 2014 Microsoft