Activate/Deactivate (0x0003)

Brings the media online or offline.

Parameters

function
0x0003 – activate/deactivate request
parameter0
Specifies the operation to be performed.

0 = activate

1 = deactivate

parameter1
Not used.
parameter2
Not used.
bufferLength
Not used.
buffer
Not used.
returnParameter
Not used.

Return Values

The following table lists return values and descriptions.

0x00000000

ERROR_NO_ERROR_FOUND

Remarks

If the media is removable, Activate/Deactivate mounts or dismounts the media in the device. This call is valid for both device and media objects.

IMPORTANT:When acting on an activate request, the CDM must call CDI_Object_Update before completing the request with a call to CDI_Complete_Message. When acting on a deactivate device request, the CDM must call CDI_Complete_Message before calling CDI_Object_Update.