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
Returns a 0 on success; otherwise, 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
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
