Skip to content

Latest commit

 

History

History
185 lines (154 loc) · 4.26 KB

nf-ntmsapi-deletentmsmediatype.md

File metadata and controls

185 lines (154 loc) · 4.26 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.DeleteNtmsMediaType
DeleteNtmsMediaType function (ntmsapi.h)
The DeleteNtmsMediaType function deletes the specified media type relation from the specified library, provided that the library does not contain any physical media objects of the specified media type.
DeleteNtmsMediaType
DeleteNtmsMediaType function [Files]
_zaw_deletentmsmediatype
base.deletentmsmediatype
fs.deletentmsmediatype
ntmsapi/DeleteNtmsMediaType
fs\deletentmsmediatype.htm
fs
c2a2bc8a-4230-44c4-b6bc-4b4e2a9fece1
12/05/2018
DeleteNtmsMediaType, DeleteNtmsMediaType function [Files], _zaw_deletentmsmediatype, base.deletentmsmediatype, fs.deletentmsmediatype, ntmsapi/DeleteNtmsMediaType
ntmsapi.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Ntmsapi.lib
Ntmsapi.dll
Windows
19H1
DeleteNtmsMediaType
ntmsapi/DeleteNtmsMediaType
c++
APIRef
kbSyntax
DllExport
Ntmsapi.dll
DeleteNtmsMediaType

DeleteNtmsMediaType function

-description

[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]

The DeleteNtmsMediaType function deletes the specified media type relation from the specified library, provided that the library does not contain any physical media objects of the specified media type.

-parameters

-param hSession [in]

Handle to the session returned by the OpenNtmsSession function.

-param lpMediaTypeId [in]

Unique identifier of a media type to delete from a library.

-param lpLibId [in]

Unique identifier of the library from which to delete the media type.

-returns

This function returns one of the following values.

Value Meaning
ERROR_ACCESS_DENIED
NTMS_MODIFY_ACCESS to the library is denied. Other security errors are possible, but indicate a security subsystem error.

Windows XP:  NTMS_CONTROL_ACCESS to the library is denied. Other security errors are possible, but indicate a security subsystem error.

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_LIBRARY
The library ID is not valid.
ERROR_INVALID_PARAMETER
The media type or library ID is missing.
ERROR_NOT_ENOUGH_MEMORY
An allocation failure occurred during processing.
ERROR_SUCCESS
The function was successful.

-remarks

If there are no physical media objects of the specified media type in the RSM system and there are no library objects that contain the specified media type relation in the RSM system, the system media pools for that media type will be deleted. Inability to delete the system media pools does not cause the DeleteNtmsMediaType function to fail.

-see-also

AddNtmsMediaType

Media Services Functions