Partager via


StopService method of the MSISCSITARGET_StorageHardwareIDManagementService 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

MSISCSITARGET_StorageHardwareIDManagementService

RequestStateChange

CIM_Service