Partager via


IWMPCore::put_URL (Windows Embedded CE 6.0)

1/6/2010

The put_URL method specifies the URL of the media item to play.

Syntax

HRESULT put_URL( BSTR bstrURL ); 

Parameters

  • bstrURL
    [in]  BSTR containing the URL.

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

This method can only be used to set a URL in a security zone that is the same or is less restrictive than the security zone of the calling program or Web page.

Applications that open media items from behind a firewall will have better performance if the address is specified using the domain name server (DNS) name instead of the IP address.

Do not call this method from event handler code as it may yield unexpected results.

See Also

Reference

IWMPCore Interface