Insert Functions (0x001B)

Moves media or magazine objects in and out of removable devices and changers.

Parameters

function
Set to 0x001B – insert/remove media or magazine request.
parameter0
Specifies the operation to be performed:

0 = insert

1 = remove

parameter1
Contains the object ID of the media or magazine object to be inserted. Specify -1 to indicate that new media should be inserted.
parameter2
Specifies the correct mail (exchange) slot in a media changer when there is more than one slot in the changer. This parameter should be 0 when there is only one mail slot, or if the device is a standalone device.
bufferLength
Not used.
buffer
Not used.

Return Values

The following table lists return values and descriptions.

0x00000000

ERROR_NO_ERROR_FOUND

Remarks

This operation generates console alerts.