[This is preliminary documentation and subject to change.]
The DeallocateNtmsMedia function deallocates the partition associated with the specified logical media.
DWORD WINAPI DeallocateNtmsMedia(
HANDLE hSession,
LPNTMS_GUID lpMediaId,
DWORD dwOptions
);
When a logical medium is deallocated with the DeallocateNtmsMedia function, RSM puts the partition associated with the logical media in the Available or Decommissioned media state. The logical media is deleted from the system when the logical media is deallocated.
Partitions are decommissioned upon deallocation if the partition has been allocated the maximum number of times specified in the media pool. After media is in the Decommissioned state, it cannot be allocated again.
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, AllocateNtmsMedia