IdentifyNtmsSlot function (ntmsapi.h)
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The IdentifyNtmsSlot function identifies the media in the specified slot in a library. The command returns when the identification is complete.
Syntax
DWORD IdentifyNtmsSlot(
[in] HANDLE hSession,
[in] LPNTMS_GUID lpSlotId,
[in] DWORD dwOption
);
Parameters
[in] hSession
Handle to the session returned by the OpenNtmsSession function.
[in] lpSlotId
Unique identifier of the slot object to be identified.
[in] dwOption
This parameter can be one of the following values.
Return value
This function returns one of the following values.
Value | Meaning |
---|---|
|
Access to one or more RSM objects is denied. |
|
The value specified in the hSession parameter is not valid. |
|
The slot ID or the dwOption is not valid. |
|
The function was successful. |
Remarks
If the slot is empty the function returns ERROR_SUCCESS, but no new media records appear.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | ntmsapi.h |
Library | Ntmsapi.lib |
DLL | Ntmsapi.dll |