ExportNtmsDatabase

[This is preliminary documentation and subject to change.]

The ExportNtmsDatabase function creates a consistent set of database files in the RSM database directory, %SystemRoot%\System32\NtmsData\Export.

DWORD WINAPI ExportNtmsDatabase(
  HANDLE hSession 
);
 

Parameters

hSession
Handle to the session returned by the OpenNtmsSession function.

Return Values

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.

Remarks

The ExportNtmsDatabase function is used by backup applications to create a copy of the RSM database. The existing files in the %SystemRoot%\System32\NtmsData\Export directory are overwritten by this function.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in ntmsapi.h.
  Import Library: Use ntmsapi.lib.

See Also

Database Backup and Recovery Functions, ImportNtmsDatabase