UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:ntmsapi.ChangeNtmsMediaType |
ChangeNtmsMediaType function (ntmsapi.h) |
The ChangeNtmsMediaType function moves the specified PMID to the specified target media pool and sets the PMID's media type identifier to the media type of the target media pool. |
|
fs\changentmsmediatype.htm |
fs |
89b3eb9b-0614-47a9-825e-1335c7fc5d0d |
12/05/2018 |
ChangeNtmsMediaType, ChangeNtmsMediaType function [Files], _zaw_changentmsmediatype, base.changentmsmediatype, fs.changentmsmediatype, ntmsapi/ChangeNtmsMediaType |
ntmsapi.h |
Windows |
Windows XP [desktop apps only] |
Windows Server 2003 [desktop apps only] |
Ntmsapi.lib |
Ntmsapi.dll |
Windows |
19H1 |
|
|
|
|
|
|
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The ChangeNtmsMediaType function moves the specified PMID to the specified target media pool and sets the PMID's media type identifier to the media type of the target media pool.
Handle to the session returned by the OpenNtmsSession function.
Unique identifier of the physical media to be moved.
Unique identifier of the media pool from which the media is to be allocated.
This function returns one of the following values.
Value | Meaning |
---|---|
|
NTMS_MODIFY_ACCESS to the computer or the media's media pool is denied. Other security errors are possible, but they would indicate a security subsystem error.
Windows XP: NTMS_MODIFY_ACCESS to the media's media pool is denied. |
|
The database is inaccessible or damaged. |
|
The database is full. |
|
The session handle is missing or is not valid. |
|
The media pool ID is not valid. |
|
The media pool or media ID is missing. |
|
An allocation failure occurred during processing. |
|
The function was successful. |
The ChangeNtmsMediaType function uses the same policy for moving media as the MoveToNtmsMediaPool function (unrecognized media can only be moved to the free pool).