EnableDevice method of the CIM_LogicalDevice class
Requests that the LogicalDevice be enabled or disabled. If successful, the Device's StatusInfo property should also reflect the desired state (enabled/disabled). The return code should be 0 if the request was successfully executed, 1 if the request is not supported and some other value if an error occurred. In a subclass, the set of possible return codes could be specified, using a ValueMap qualifier on the method. The strings to which the ValueMap contents are 'translated' may also be specified in the subclass as a Values array qualifier.
Syntax
uint32 EnableDevice(
[in] boolean Enabled
);
Parameters
-
Enabled [in]
-
TRUE if the device is to be enabled, FALSE if the device is to be disabled.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\MSCluster |
MOF |
|
DLL |
|