Hello All,
I am trying to write an application to backup Exchange server at Store
level. Below is the function I have written for it. I am using VC++ 6.0 and
M.S. Exchange server 2003. My application crashes when I invoke the function
HrESEBackupRestoreGetNodes. Also I had a question is PBACKUP_NODE_TREE same
as BACKUP_NODE_TREE ?
BOOL BackupExchangeServer(HINSTANCE g_hESEDll)
{
BACKUP_NODE_TREE *pMNUBackupNodeTree;
typedef HRESULT (* HrESEBackupRestoreGetNodes) (IN WCHAR*
wszComputerName,OUT BACKUP_NODE_TREE* pBackupNodeTree);
HrESEBackupRestoreGetNodes fnMNUBackupRestoreGetNodes = NULL;
fnMNUBackupRestoreGetNodes = (HrESEBackupRestoreGetNodes) GetProcAddress
(g_hESEDll,"HrESEBackupRestoreGetNodes");
//my program crashes in the next line.
HRESULT hr = (fnMNUBackupRestoreGetNodes) (NULL, pMNUBackupNodeTree);
if(hr == S_OK)
return MNU_EXCHANGE_BKP_SUCCESS;
else
return MNU_EXCHANGE_BKP_FAILURE;
}
The Lod Library successfully loads the dll "esebcli2.dll". Hence the
function HrESEBackupRestoreGetNodes should return success, but it fails.
Can anyone please point the mistake in my code or give me sample code for
Backup Functions?
Thanks,
Viraj
a.viraj@mobiliti.com
http://www.mobiliti.com
Archived from group: microsoft>public>exchange>application>conversion