LockMedia method of the CIM_MediaAccessDevice class

Locks and unlocks the media in a removeable access device.

Syntax

uint32 LockMedia(
  [in] boolean Lock
);

Parameters

Lock [in]

If TRUE, locks the media. If FALSE, releases the media.

Return value

Returns a 0 on success; otherwise, returns an error.

Requirements

Requirement Value
Minimum supported client
Windows 8.1
Minimum supported server
Windows Server 2012 R2
Namespace
Root\virtualization\v2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

See also

CIM_MediaAccessDevice