Share via


StopService method of the MSFTSM_ObjectManager class

Places the service in the stopped state. Deprecated. Instead, use the RequestStateChange method. Invoking this method should set the RequestedState property appropriately.

This method is inherited from the CIM_Service class.

Syntax

uint32 StopService();

Parameters

This method has no parameters.

Return value

0

The Service was successfully stopped.

1

The request is not supported.

2 = value

Undefined error.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\CIMv2\Storage\iScsiTarget
Header
Sdoias.h
MOF
SmIscsiTarget.mof
DLL
SmIScsiTargetProv.dll

See also

MSFTSM_ObjectManager

CIM_EnabledLogicalElement

CIM_Service