LockMedia method of the CIM_DiskDrive class

Represents a device that can use media to store and retrieve data.

Syntax

uint32 LockMedia(
  [in] boolean Lock
);

Parameters

Lock [in]

true to lock the media, or false to unlock the media.

Return value

This method returns "0" if successful, "1" if not supported, and any other value if an error occurred.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\HyperVCluster\v2
MOF
WindowsHyperVCluster.V2.mof
DLL
VMMS.exe

See also

CIM_DiskDrive