Freigeben über


EnableDevice method of the CIM_LogicalDevice class

This method is deprecated. Instead, use the RequestStateChange method.

Deprecated description: Enables or disables the numeric sensor.

Syntax

uint32 EnableDevice(
  [in] boolean Enabled
);

Parameters

Enabled [in]

Indicates whether to enable the numeric sensor. true to enable the sensor; otherwise false.

Return value

0

The operation completed successfully.

1

The operation was not completed because it is not supported.

Requirements

Namespace
Root\virtualization
MOF
WindowsVirtualization.mof

See also

CIM_LogicalDevice