Share via


EnableDevice method of the MSISCSITARGET_SCSIProtocolController class

Requests that the logical device be enabled or disabled. Deprecated. Instead, use the RequestStateChange method.

This method is inherited from the CIM_LogicalDevice class.

Syntax

uint32 EnableDevice(
  [in] boolean Enabled
);

Parameters

Enabled [in]

Set True to enable the device, false to disable the device.

Return value

This method returns one of the following values.

0

Success.

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
MOF
SmIscsiTarget.mof
DLL
SmIScsiTargetProv.dll

See also

MSISCSITARGET_SCSIProtocolController

RequestStateChange

CIM_LogicalDevice