22.214.171.124.2.14 INtmsMediaServices1::DeleteNtmsMediaPool (Opnum 17)
The DeleteNtmsMediaPool method deletes an application media pool.
HRESULT DeleteNtmsMediaPool( [in] LPNTMS_GUID lpPoolId );
lpPoolId: A pointer to the identifier of a media pool.
The call was successful.
NTMS_CONTROL_ACCESS to the media pool is denied (for more information, see [MSDN-SetNtmsObjectSecurity]); other security errors are possible, but indicate a security subsystem error.
An allocation failure occurred during processing.
The media pool identifier is missing.
Unable to open the media pool or delete the free, import, or unrecognized media pools.
The media pool must be empty to be deleted.
The database is inaccessible or damaged.
The DeleteNtmsMediaPool method deletes the specified application media pool. Only empty media pools can be deleted with the DeleteNtmsMediaPool method. Free, unrecognized, and import media pools are managed by RSM and cannot be deleted with DeleteNtmsMediaPool.
Upon receiving this message, the server MUST verify that lpPoolId is not NULL; otherwise, the server MUST immediately fail the operation and return ERROR_INVALID_PARAMETER (0x80070057).
The server MUST verify that the user has the required access rights.
The server MUST check that the parent is not in a SCRATCH/IMPORT/FOREIGN media pool; if it is, it MUST NOT perform the delete and MUST return ERROR_INVALID_MEDIA_POOL. Otherwise, the server MUST delete the media pool from the database.