ExportNtmsDatabase function (ntmsapi.h)
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The ExportNtmsDatabase function creates a consistent set of database files in the RSM database directory.
DWORD ExportNtmsDatabase( HANDLE hSession );
Handle to the session returned by the OpenNtmsSession function.
This function returns one of the following values.
||Access to one or more RSM objects is denied.|
||The database query or update failed.|
||The value specified in the hSession parameter is not valid.|
||Unable to connect to the RSM service.|
||One of the files that the function must write to is open.|
||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.
The default location of the database is%SystemRoot%\System32\NtmsData, but this can be set by defining a registry value:
This function creates a subdirectory called Export and places the consistent files there.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|