hello,
I registered successfully for event fnevObjectModified and want to check
wether a mail is marked for download but my comparison fails.....
please help very important to me..
thanks in advance
STDMETHOD_(ULONG, OnNotify)(ULONG cNotif, LPNOTIFICATION lpNotifications)
{
if(!((lpNotifications->ulEventType&fnevObjectCreated)||(lpNotifications->
ulEventType&fnevObjectMoved)||(lpNotifications->ulEventType&fnevObjectModifi
ed)))
{
return 0;
}
else if(lpNotifications->ulEventType&fnevObjectModified)
{
DWORD type = 0;
for(DWORD n = 0;
n<lpNotifications->info.obj.lpPropTagArray->cValues;n++)
{
type =
PROP_ID(lpNotifications->info.obj.lpPropTagArray->aulPropTag[n]);
if((PR_MSG_STATUS & type) && (MSGSTATUS_REMOTE_DOWNLOAD &
LOWORD(type)))// & 0x0E17;
AfxMessageBox(_T("goal"));
}
}