Freigeben über


EnableDevice method of the Sensor class

Note

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

Enables or disables the sensor.

This method is inherited from CIM_LogicalDevice.

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

IPMI Provider

Sensor