[This is preliminary documentation and subject to change.]
The ChangeNtmsMediaType function moves the specified PMID to the specified target media pool and sets the PMID's MediaType GUID to the MediaType of the target media pool.
DWORD ChangeNtmsMediaType(
HANDLE hSession,
LPNTMS_GUID lpMediaId,
LPNTMS_GUID lpPoolId
);
The ChangeNtmsMediaType function requires the caller to have NTMS_MODIFY_ACCESS rights on the target media pool. The ChangeNtmsMediaType function uses the same policy for moving media as the MoveToNtmsMediaPool function (FOREIGN media can only be moved to the SCRATCH Pool).
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, AddNtmsMediaType, DeleteNtmsMediaType