Windows Media Player 11 SDK Network.getProxyPortÂ
Previous | Next |
Network.getProxyPort
The getProxyPort method retrieves the proxy port 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 Number (long) containing the proxy port being used. The value returned is meaningful only when getProxySettings returns a value of two (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.getProxyPort to display the current Windows Media Player proxy port numbers for the MMS and HTTP 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 |