ImportNtmsDatabase function (ntmsapi.h)

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

The ImportNtmsDatabase function causes RSM to import the database files from the database Export directory at the next restart of the RSM.

Syntax

DWORD ImportNtmsDatabase(
  [in] HANDLE hSession
);

Parameters

[in] hSession

Handle to the session returned by the OpenNtmsSession function.

Return value

This function returns one of the following values.

Value Meaning
ERROR_ACCESS_DENIED
Access to at least one RSM object is denied.
ERROR_DATABASE_FAILURE
The database query or update failed.
ERROR_INVALID_HANDLE
The value specified in the hSession parameter is not valid.
ERROR_NOT_CONNECTED
Unable to connect to the RSM.
ERROR_SUCCESS
The function was successful.

Remarks

The ImportNtmsDatabase function is used by backup applications during disaster recovery.

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

See also

Database Backup and Recovery Functions

ExportNtmsDatabase