Share via


StopService method of the CIM_Service class

Stops the service.

The StopService method stops the service represented by the object derived from CIM_Service.

Syntax

uint32 StopService();

Parameters

This method has no parameters.

Return value

Returns "0" on success, otherwise returns a WMI error code.

Requirements

Namespace
Root\virtualization
MOF
WindowsVirtualization.mof

See also

CIM_Service