LockMedia method of the Msvm_DVDDrive class

Locks or releases the media.

Syntax

uint32 LockMedia(
  [in] boolean Lock
);

Parameters

Lock [in]

true to lock the media; false to release the media.

Return value

This method returns one of the following values:

Completed with No Error (0)

Not supported (1)

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

Msvm_DVDDrive