Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCArray::RestartServices[C++]

FPCArray.RestartServices [Visual Basic]

[C++]

The RestartServices method restarts the services specified in a bitmask of the FpcServices enumerated type and any services that depend on them. This method can restart any service that can be specified by a value defined in the FpcServices enumerated type.

HRESULT RestartServices(
  FpcServices Services
);

Parameters

Services
[in] Bitmask of the FpcServices enumerated type that specifies the services to be restarted.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

This method does not return until all of the services that need to be restarted have finished restarting.

The Microsoft Firewall Service depends on the Microsoft Data Engine (MSDE) service. If this method is called to restart the MSDE service, it will also restart the Firewall service.

If a service specified is not running when this method is called, the method starts the service.

[Visual Basic]

The RestartServices method restarts the services specified in a bitmask of the FpcServices enumerated type and any services that depend on them. This method can restart any service that can be specified by a value defined in the FpcServices enumerated type.

Sub RestartServices( _
  ByVal Services As FpcServices _
)

Parameters

Services
[in] Bitmask of the FpcServices enumerated type that specifies the services to be restarted.

Return Values

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Remarks

This method does not return until all of the services that need to be restarted have finished restarting.

The Microsoft Firewall Service depends on the Microsoft Data Engine (MSDE) service. If this method is called to restart the MSDE service, it will also restart the Firewall service.

If a service specified is not running when this method is called, the method starts the service.

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

FPCArray