Magazine Deselect Media (0x001D - 0x0004)

Directs the CDM to transfer a specific piece of media into the read/write device associated with a magazine.

Parameters

function
Set to 0x001D – magazine function.
parameter0
0x0004 – magazine deselect.
parameter1
The number of the destination storage slot.
parameter2
Not used.
bufferLength
Not used.
buffer
Pointer to a LONG containing the number of the destination storage slot.

Return Values

The following table lists return values and descriptions.

0x00000000

ERROR_NO_ERROR_FOUND

Remarks

IMPORTANT:Mandatory for removables with magazines.

This is a Media Manager control function [packaged in a CDMMessageStruct] that has 0x001D as the value in its function field to identify that it is a function in the magazine category. The value in parameter0 acts as a subfunction index (0x0004) to identify what function to perform. The CDM can either implement a secondary jump table using the value in parameter0 as an index or use a switch statement on parameter0 to call its routine to field the message.