MM_LOAD_FUNCTIONS

Loads or unloads media (i.e., magazines or media) for a removable device.

Parameters

handle
The handle of the device to be loaded or unloaded.
function
Set to MM_LOAD_FUNCTIONS.
parameter1
Load/Unload flag:

0 = load media

1 = unload media

parameter2
Performs actions based on the status of Load/Unload flag.Load/Unload flag = 0, contains the ID of the media (i.e., offline media) to be loaded.Load/Unload flag = 1, contains the disposition of unloaded media:0 = forget/eliminate object from database1 = remembers (i.e., preserves) current media database information such as labels, media objects in a magazine, etc.
parameter3
For devices with multiple mailslots, this parameter indicates which mailslot is to be loaded or unloaded.
bufferLen
Set to zero.
buffer
Reinventory flag. Set this to the following:-1 = magazine structure is to be reinventoried (i.e., there is a need to update the inventory in the magazine object’s database, overwriting current information.)0 = magazine structure is to remain untouched.
returnParameter
Not used.

Return Values

The following table lists return values and descriptions.

0x00000000

MM_OK

Remarks

This API calls into the Human Jukebox routine of Media Manager notifying the application when to issue requests for user interaction (i.e., insert or remove media).