[This is preliminary documentation and subject to change.]
After you create and configure media pools, you can allocate media using the AllocateNtmsMedia function. This function returns a logical media identifier (LMID) that you can use to mount the media with the MountNtmsMedia function. You can also use this LMID to control the media.
After you mount and use media with standard Microsoft® Win32® I/O functions, you should use the DismountNtmsMedia function to dismount it. You can open and close media many times before dismount.
The following list follows the path of functions you should use to access media in a RSM system.
You can use the DeallocateNtmsMedia function to deallocate media. You can mount and dismount media many times before deallocation.