Share via


Windows Media Player 11 SDK Network.getProxySettings 

Windows Media Player SDK banner art

Previous Next

Network.getProxySettings

The getProxySettings method retrieves the proxy setting for a given protocol.

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 Number (long) containing one of the following values.

Value Description
0 A proxy server is not being used.
1 The proxy settings for the current browser are being used (only valid for HTTP).
2 The manually specified proxy settings are being used.
3 The proxy settings are being auto-detected.

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.getProxySettings to display a message, which gives information about the current proxy settings of the Player, in the browser window. 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