I am trying to complete a custom backup solution. I am using the esebcli2.dll interfaces for this. I am able to call MNUBackupRestoreGetNodes with no problem. When I try to prepare the backup using HrESEBackupPrepare, the command fails with "An attempt was made to reference a token that does not exist." I have found many posts regarding this, but no solutions. Does anyone have any ideas?
Here is some of the code:
Here is some of the code:
Code:
HrESEBackupPrepare fnHrESEBackupPrepare = (HrESEBackupPrepare) GetProcAddress (hMod,"HrESEBackupPrepare");
ESEBackupFreeInstanceInfo fnESEBackupFreeInstanceInfo = (ESEBackupFreeInstanceInfo) GetProcAddress (hMod,"ESEBackupFreeInstanceInfo");
WCHAR *MyServer = L"MYSERVER";
WCHAR *MyStore = L"Microsoft Information Store";
unsigned long InstanceInfo = 0;
INSTANCE_BACKUP_INFO *aInstanceInfo;
HCCX Handle;
hr = (fnHrESEBackupPrepare) (
MyServer,
MyStore,
&InstanceInfo,
&aInstanceInfo,
&Handle);
if (hr != S_OK)
{
printf("BackupPrepare Error: %-8lx", hr);
FreeLibrary (hMod);
return -1;
}