Share via


LockMedia method of the CIM_MediaAccessDevice 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

Namespace
Root\virtualization
MOF
WindowsVirtualization.mof

See also

CIM_MediaAccessDevice