MM_ACTIVATE_FUNCTIONS

Brings the media on-line or off-line.

Parameters

handle
The handle of the media or device object to be mounted or dismounted.
function
Set to MM_ACTIVATE_FUNCTIONS.
parameter1
Indicates an activation or deactivation.

0 = active

1 = deactive

parameter2
Reserved. Set to zero.
parameter3
Reserved. Set to zero.
bufferLen
Set to zero.
buffer
Set to zero.
returnParameter
Not used.

Return Values

The following table lists return values and descriptions.

0x00000000

MM_OK

Remarks

If the media is removable, MM_ACTIVATE_FUNCTION will mount or dismount the media in the device. This call is valid for both device and media objects.