Microsoft Internet Security and Acceleration Server 2004 SDK

EnableWebProxyClients Property of IFPCNetwork[C++]

FPCNetwork.EnableWebProxyClients [Visual Basic]

[C++]

The EnableWebProxyClients property gets or sets a Boolean value that indicates whether Web proxy clients on the network are supported.

HRESULT get_EnableWebProxyClients(
  VARIANT_BOOL* pfWebProxyClientsEnabled
);

HRESULT put_EnableWebProxyClients(
  VARIANT_BOOL fWebProxyClientsEnabled
);

Parameters

pfWebProxyClientsEnabled
Pointer to a Boolean variable that is set on return to VARIANT_TRUE if Web proxy clients on the network are supported, or to VARIANT_FALSE if Web proxy clients on the network are not supported.
fWebProxyClientsEnabled
Boolean value indicates whether Web proxy clients on the network are supported.

Return Values

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Remarks

This property is read/write.

For the Local Host network, this property must be set to VARIANT_TRUE before attempting to create a new content download job.

[Visual Basic]

The EnableWebProxyClients property gets or sets a Boolean value that indicates whether Web proxy clients on the network are supported.

Property EnableWebProxyClients As Boolean

Property Value

Boolean value that indicates whether Web proxy clients on the network are supported.

Remarks

This property is read/write.

For the Local Host network, this property must be set to True before attempting to create a new content download job.

Example Code

This VBScript code example enables listening for requests from Web proxy clients on the Local Host network if it is not enabled.

' Define an enumeration value.
const fpcLocalHost = 2

' Create the root obect.
Set root = CreateObject("FPC.Root")

' Declare the other objects needed.
Dim array	 ' An FPCArray object
Dim networks  ' An FPCNetworks collection
Dim network   ' An FPCNetwork object

' Get references to the array object 
' and the networks collection.
Set array = root.GetContainingArray()
Set networks = array.NetworkConfiguration.Networks

' Iterate through the networks, and for the Local Host network,
' enable listening for requests from Web Proxy clients if it is
' not enabled.
For Each network In networks
	If network.NetworkType = fpcLocalHost Then
		If network.EnableWebProxyClients = False Then
			network.EnableWebProxyClients = True
			network.Save
		End If
	End If
Next

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCNetwork