[This is preliminary documentation and subject to change.]
The SetNtmsMediaComplete function marks a piece of logical media as complete.
DWORD WINAPI SetNtmsMediaComplete(
HANDLE hSession,
LPNTMS_GUID lpMediaId
);
The SetNtmsMediaComplete function marks the specified medium as Complete. An application marks the medium as Complete when the application is no longer going to write to the medium. Complete media cannot be mounted with the NTMS_MOUNT_WRITE flag. For many applications, the date and time when the medium is marked Complete indicates which media can be safely removed from a library.
The SetNtmsMediaComplete function is typically used when an application reaches the end of media. Media that is mounted or in use cannot be marked as complete.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in ntmsapi.h.
Import Library: Use ntmsapi.lib.
Media Services Functions, MountNtmsMedia