Skip to content

Latest commit

 

History

History
190 lines (156 loc) · 4.19 KB

nf-ntmsapi-changentmsmediatype.md

File metadata and controls

190 lines (156 loc) · 4.19 KB
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.
ChangeNtmsMediaType
ChangeNtmsMediaType function [Files]
_zaw_changentmsmediatype
base.changentmsmediatype
fs.changentmsmediatype
ntmsapi/ChangeNtmsMediaType
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
ChangeNtmsMediaType
ntmsapi/ChangeNtmsMediaType
c++
APIRef
kbSyntax
DllExport
Ntmsapi.dll
ChangeNtmsMediaType

ChangeNtmsMediaType function

-description

[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.

-parameters

-param hSession [in]

Handle to the session returned by the OpenNtmsSession function.

-param lpMediaId [in]

Unique identifier of the physical media to be moved.

-param lpPoolId [in]

Unique identifier of the media pool from which the media is to be allocated.

-returns

This function returns one of the following values.

Value Meaning
ERROR_ACCESS_DENIED
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.

ERROR_DATABASE_FAILURE
The database is inaccessible or damaged.
ERROR_DATABASE_FULL
The database is full.
ERROR_INVALID_HANDLE
The session handle is missing or is not valid.
ERROR_INVALID_MEDIA_POOL
The media pool ID is not valid.
ERROR_INVALID_PARAMETER
The media pool or media ID is missing.
ERROR_NOT_ENOUGH_MEMORY
An allocation failure occurred during processing.
ERROR_SUCCESS
The function was successful.

-remarks

The ChangeNtmsMediaType function uses the same policy for moving media as the MoveToNtmsMediaPool function (unrecognized media can only be moved to the free pool).

-see-also

AddNtmsMediaType

DeleteNtmsMediaType

Media Services Functions