Share via


EnableDevice method of the CIM_LogicalDevice class

Note

This method is deprecated. Instead we recommend that you use the RequestStateChange method.

Enables or disables the sensor.

Syntax

uint32 EnableDevice(
  [in] boolean Enabled
);

Parameters

Enabled [in]

Indicates whether to enable the sensor. True to enable the sensor; otherwise false.

Return value

A return code that indicates whether the operation completed successfully.

0

The operation completed successfully.

1

The operation was not completed because it is not supported.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\Hardware
MOF
IpmiPrv.mof
DLL
IpmiPrv.dll

See also

CIM_LogicalDevice