Hi
I am following the msdn step by step with trying to backup my exchange
server, but I get an access denied error while trying to call
‘HrESEBackupPrepare’ … I am running as an Administrator on the and the
server is on the local mahcine… w2k3 … exchange 2003…
here is my code:
#include <windows.h>
#include <esebcli2.h>
#pragma comment( lib, “esebcli2.lib” )
#include
int main()
{
BACKUP_NODE_TREE *BackupNodeTree;
HRESULT Result;
Result = HrESEBackupRestoreGetNodes( L"localhost", &BackupNodeTree);
INSTANCE_BACKUP_INFO *BackupInfo;
unsigned long InstanceInfo = 0;
HCCX Handle;
Result = HrESEBackupPrepare(
BackupNodeTree->pChildNode->wszName,
L"Microsoft Information Store", //,
&InstanceInfo,
&BackupInfo,
&Handle);
// Result is “Access is denied” <--------
ESEBackupRestoreFreeNodes( BackupNodeTree );
return 0;
}
Is there any special preveleges that I should set to the user account? I
am pretty sure there shouldn’t be anything wrong, because NTbackup works
fine with getting the storage groups…
Thanks in advanced.
Daher Fawares.</esebcli2.h></windows.h>