PROXY_CONFIG

Send Feedback

This structure tells an application which proxy server to use.

Syntax

typedef struct _PROXY_CONFIG {
  DWORD dwType;
  DWORD dwEnable;
  TCHAR szProxyServer[CMPROXY_PROXYSERVER_MAXSIZE];
  TCHAR szUsername[CMPROXY_USERNAME_MAXSIZE];
  TCHAR szPassword[CMPROXY_PASSWORD_MAXSIZE];
  TCHAR szProxyOverride[CMPROXY_PROXYOVERRIDE_MAXSIZE];
  TCHAR szExtraInfo[CMPROXY_EXTRAINFO_MAXSIZE];
} PROXY_CONFIG;

Members

  • dwType
    The type of proxy server. One of the Connection Manager proxy flag constants.
  • dwEnable
    Set to 1 by the proxy CSP. If 0, the proxy server configuration exists but the ability to connect to the server is disabled.
  • szProxyServer
    Name and port number of the proxy server. The syntax of this member would be proxy:80, where proxy is the proxy server name and 80 is the value of the port number. The maximum size of this member is specified by CMPROXY_PROXYSERVER_MAXSIZE.
  • szUsername
    User name with which the proxy server connection is made; used only with SOCKS proxy servers.
  • szPassword
    Password associated with the user name specified in szUsername; used only with SOCKS proxy servers. Only privileged applications are allowed to retrieve proxy passwords; if a normal application attempts to query the proxy settings for a proxy that has a password associated with it, a result code of E_ACCESSDENIED is returned.
  • szProxyOverride
    Reserved.
  • szExtraInfo
    Reserved; used for WAP proxy servers.

Remarks

This structure contains all of the members that an application requires to connect to a proxy server. The proxy connection service provider (CSP) fills in this structure in response to the appropriate ConnMgrProviderMessage function call.

Requirements

OS Versions: Windows CE .NET 4.2 and later
Header: connmgr_proxy.h

See Also

ConnMgrProviderMessage | Connection Manager Proxy Flag Constants

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.