126.96.36.199.2.7 INtmsMediaServices1::SetNtmsMediaComplete (Opnum 10)
The SetNtmsMediaComplete method marks a piece of logical media as complete.
HRESULT SetNtmsMediaComplete( [in] LPNTMS_GUID lpMediaId );
lpMediaId: A pointer to the identifier of the logical medium.
The call was successful.
NTMS_MODIFY_ACCESS to the library is denied; other security errors are possible, but indicate a security subsystem error.
An allocation error occurred during processing.
The media identifier is missing.
The media identifier is invalid.
The media pool of the media is invalid.
The database is inaccessible or damaged.
The database is full.
Upon receiving this message, the server MUST verify that lpMediaId is not NULL. If it is NULL, the server MUST immediately fail the operation and return ERROR_INVALID_PARAMETER (0x80070057).
If parameter validation succeeds, the server MUST verify that the user has the required access rights. If the client does not have the required access rights, the server MUST return ERROR_ACCESS_DENIED (0x80070005).
The SetNtmsMediaComplete method 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.
The SetNtmsMediaComplete method is typically used when an application reaches the end of the media. Media that are mounted or in use cannot be marked as complete.