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.
- pbstrFile [out]
Pointer to a BSTR containing the location of the skin file.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
|S_OK||The method succeeded.|
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.
|Windows Media Player 9 Series or later.|
- IWMPRemoteMediaServices Interface
- Using Skins with the Windows Media Player Control