Partager via


EnableDevice method of the MSFTSMNET_EthernetPort 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 to True to enable the device Set to false to disable the device.

Return value

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

MSFTSMNET_EthernetPort

RequestStateChange