Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

esebcli2 HrESEBackupPrepare

Status
Not open for further replies.

btaber

Programmer
May 26, 2002
307
US
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:

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;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top