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( [in] FpcServices Services );
Bitmask of the FpcServices enumerated type that specifies the services to be restarted.
Sub RestartServices( _ ByVal Services As FpcServices _ )
Bitmask of the FpcServices enumerated type that specifies the services to be restarted.
This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
A bitmask specifying the services that need to be restarted to apply unsaved changes can be obtained by calling the GetServiceRestartMask method. Note that calling the Save method on any object clears all of the bits in the bitmask maintained internally by Forefront TMG.
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 SQL Server Express service. If this method is called to restart the SQL Server Express 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.
Client | Requires Windows Vista or Windows XP. |
---|---|
Server | Requires Windows Server 2008. |
Version | Requires Forefront Threat Management Gateway (TMG). |
IDL |
Declared in Msfpccom.idl. |
DLL |
Requires Msfpccom.dll. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.