4.4 Media Management Using INtmsMediaServices1

The following illustrates the how an RSM client performs media management using the INtmsMediaServices1 interface.

Example of media management (ASCII)

Figure 4: Example of media management (ASCII)

  1. The client calls INtmsSession1::OpenNtmsServerSessionA to open a session with the server.

  2. The server initializes the session and indicates success.

  3. The RSM client calls INtmsObjectManagement1::EnumerateNtmsObject. The dwType parameter is set to a value from the NtmsObjectsTypes enumeration.

  4. The server returns a list of objects.

  5. The client calls INtmsMediaServices1::MountNtmsMedia to mount media in a drive, specifying the media ID and the drive ID it obtained through EnumerateNtmsObject.

  6. The server indicates success (S_OK).