Microsoft Internet Security and Acceleration Server 2004 SDK |
The GetContainingServer method retrieves the IFPCServer interface that represents the current ISA Server computer.
HRESULT GetContainingServer( IFPCServer** ppItem );
This method can return one of the following:
The GetContainingServer method retrieves the FPCServer object that represents the current ISA Server computer.
Function GetContainingServer() As FPCServer
This method returns a reference to an FPCServer object if successful. Otherwise, an error is raised that can be intercepted by using an error handler. In particular, an ERROR_FILE_NOT_FOUND is raised if the FPCServer object could not be found because the method was called on a remote administration computer on which the Microsoft Firewall service is not running.
The following Visual Basic code example retrieves the name of the current ISA Server computer by means of the GetContainingServer method.
Dim root As New FPCLib.FPC Dim containingServer As String containingServer = root.GetContainingServer.Name
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.