Platform SDK: Removable Storage Manager

ImportNtmsDatabase

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

DWORD WINAPI ImportNtmsDatabase(
  HANDLE hSession 
);

Parameters

hSession
Handle to the session returned by the OpenNtmsSession function.

Return 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 invalid.
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

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Ntmsapi.h.
  Library: Use Ntmsapi.lib.

See Also

Database Backup and Recovery Functions, ExportNtmsDatabase