Share via


Windows Media Player 11 SDK Network.getProxyName 

Windows Media Player SDK banner art

Previous Next

Network.getProxyName

The getProxyName method retrieves the name of the proxy server being used.

Syntax

  

Parameters

protocol

String specifying the protocol name. For a list of supported protocols, see Supported Protocols and File Types.

Return Values

This method returns a String containing the name of the proxy server being used. The value returned is meaningful only when getProxySettings returns a value of 2 (use manual settings).

Remarks

This method fails unless the calling application is running on the local computer or intranet.

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

Example Code

The following JScript example uses Network.getProxyName to display the Windows Media Player proxy server names for the HTTP and MMS protocols. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next