Re: Using the Exchange Backup API
- From: "Jeff Partch [MVP]" <jeffp@xxxxxxxx>
- Date: Thu, 28 Jul 2005 19:34:03 -0500
"Viraj" <Viraj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:022E6942-85CC-464C-9040-CAEDA84ECE77@xxxxxxxxxxxxxxxx
> Hello Scot,
>
> Thanks for the reply. I made the correction as directed by you. Also I
> created PBACKUP_NODE_TREE as typedef struct BACKUP_NODE_TREE
> *PBACKUP_NODE_TREE ;
>
> Now the final code is:
> --------------------------------------------------------------------------
----
> BOOL BackupExchangeServer(HINSTANCE g_hESEDll)
> {
> BACKUP_NODE_TREE* pMNUBackupNodeTree = NULL;
> typedef HRESULT (* HrESEBackupRestoreGetNodes) (IN WCHAR*
> wszComputerName,OUT PBACKUP_NODE_TREE *ppBackupNodeTree);
> HrESEBackupRestoreGetNodes fnMNUBackupRestoreGetNodes = NULL;
> fnMNUBackupRestoreGetNodes = (HrESEBackupRestoreGetNodes) GetProcAddress
> (g_hESEDll,"HrESEBackupRestoreGetNodes");
> HRESULT hr;
> if(fnMNUBackupRestoreGetNodes)
> hr = (fnMNUBackupRestoreGetNodes) (NULL, &pMNUBackupNodeTree);
> if(hr == S_OK)
> return MNU_EXCHANGE_BKP_SUCCESS;
> else
> return MNU_EXCHANGE_BKP_FAILURE;
> }
> --------------------------------------------------------------------------
----
>
> This code compiles properly, but the application fails during execution of
> HrESEBackupRestoreGetNodes. The error message I get is
> --------------------------------------------------------------
> Debug Error!
> Program: C:\ ...\MNUExchangeBackup.exe
> Module:
> File: i386\chkesp.c
> Line: 42
> Ther value of ESP was not properly saved across a function call. This is
> usually a result of calling a function declared with one calling
convention
> with a function pointer declared with a different calling convention.
> --------------------------------------------------------------
>
> What could possibly be the error ?
typedef HRESULT (ESEBACK_API* HrESEBackupRestoreGetNodes) (IN WCHAR*
wszComputerName,OUT PBACKUP_NODE_TREE *ppBackupNodeTree);
--
Jeff Partch [VC++ MVP]
.
- Follow-Ups:
- Re: Using the Exchange Backup API
- From: Viraj
- Re: Using the Exchange Backup API
- References:
- Using the Exchange Backup API
- From: Viraj
- Re: Using the Exchange Backup API
- From: Scot T Brennecke
- Re: Using the Exchange Backup API
- From: Viraj
- Re: Using the Exchange Backup API
- From: Scot T Brennecke
- Re: Using the Exchange Backup API
- From: Viraj
- Re: Using the Exchange Backup API
- From: Scot T Brennecke
- Re: Using the Exchange Backup API
- From: Viraj
- Re: Using the Exchange Backup API
- From: Scot T Brennecke
- Re: Using the Exchange Backup API
- From: Viraj
- Using the Exchange Backup API
- Prev by Date: Re: What to use, Serialize or OnFileSave and OnFileLoad?
- Next by Date: Re: how do I temporarily disable runtime type checking
- Previous by thread: Re: Using the Exchange Backup API
- Next by thread: Re: Using the Exchange Backup API
- Index(es):