Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Tue, 19 Jul 2005 09:10:32 -0700,    group: microsoft.public.exchange2000.development        back       


Using the Exchange Backup API   
Hello All,

I am trying to write an application to backup Exchange server. 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
date: Tue, 19 Jul 2005 09:10:32 -0700   author:   Viraj

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us