Platform SDK: Removable Storage Manager |
The ExportNtmsDatabase function creates a consistent set of database files in the RSM database directory. The default location of the database is%SystemRoot%\System32\NtmsData, but this can be set by defining a registry value:
HKLM\System\CurrentControlSet\Control\NTMS\NtmsData
This function creates a subdirectory called Export and places the consistent files there.
DWORD WINAPI ExportNtmsDatabase( HANDLE hSession );
Value | Meaning |
---|---|
ERROR_ACCESS_DENIED | Access to one or more RSM objects 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 service. |
ERROR_SUCCESS | The function was successful. |
The ExportNtmsDatabase function is used by backup applications to create a copy of the RSM database. Any existing files in the Export directory are overwritten by this function.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntmsapi.h.
Library: Use Ntmsapi.lib.