S
Shizuka
I have wrote the following code, and my question is how to get the
"pInfo"?
It seem that can't call the CheckNewMailProc but return TRUE, is
something get wrong or I got misunderstand?
typedef BOOL(__cdecl *
CHECKFORNEWMAILCALLBACK)(TransportCheckForNewMailInfo*);
BOOL CALLBACK CheckNewMailProc(TransportCheckForNewMailInfo *pInfo)
{
return TRUE;
}
BOOL CEmailView::TransportConnect()
{
HINSTANCE hInst = LoadLibrary(_T("imap4.dll"));
typedef BOOL(*PTRANSPORTCHECKFORNEWMAIL)(HANDLE,CHECKFORNEWMAILCALLBACK);
PTRANSPORTCHECKFORNEWMAIL pTransportCheckForNewMail =
(PTRANSPORTCHECKFORNEWMAIL)GetProcAddress(hInst,_T("TransportCheckForNewMail"));
if(!pTransportCheckForNewMail(hService, CheckNewMailProc))//<---can't
all "CheckNewMailProc"
{
return FALSE;
}
return TRUE;
}
"pInfo"?
It seem that can't call the CheckNewMailProc but return TRUE, is
something get wrong or I got misunderstand?
typedef BOOL(__cdecl *
CHECKFORNEWMAILCALLBACK)(TransportCheckForNewMailInfo*);
BOOL CALLBACK CheckNewMailProc(TransportCheckForNewMailInfo *pInfo)
{
return TRUE;
}
BOOL CEmailView::TransportConnect()
{
HINSTANCE hInst = LoadLibrary(_T("imap4.dll"));
typedef BOOL(*PTRANSPORTCHECKFORNEWMAIL)(HANDLE,CHECKFORNEWMAILCALLBACK);
PTRANSPORTCHECKFORNEWMAIL pTransportCheckForNewMail =
(PTRANSPORTCHECKFORNEWMAIL)GetProcAddress(hInst,_T("TransportCheckForNewMail"));
if(!pTransportCheckForNewMail(hService, CheckNewMailProc))//<---can't
all "CheckNewMailProc"
{
return FALSE;
}
return TRUE;
}