Hi,
i am expirimenting with messaging api see attachment.
When i found some functionality missing i imported it. getprocadress etc.... u know, the usual hacks. :dazzled:
The aplication keeps reading MAILS... at least i think it does....
for some reason it OPENS thunderbird and CHECKS for new emails. Then it never leaves that function.
Well thats really odd/strange dont u guys think?
invoke GetProcAddress,hLib,addr FunctionMAPIReadMail
.if eax==NULL
invoke MessageBox,NULL,addr FunctionNotFound,addr AppName,MB_OK
.endif
mov TestHelloAddr,eax
; MAPIReadMail(lhSession, 0L, MsgID, MAPI_PEEK, 0L, &lpMessage) == SUCCESS_SUCCESS)
push lpMessage ;dword ptr = buggy
push 0h
push MAPI_PEEK
push offset MsgID
PUSH 0h
PUSH offset lhSession
;MAPILogon(0, NULL, NULL, 0, 0, &lhSession
call [TestHelloAddr]
.if eax==SUCCESS_SUCCESS
invoke MessageBox,NULL,addr FunctionFound,addr FunctionMAPIReadMail,MB_OK
.endif
strangest thing is that after
call [TestHelloAddr] ;wich is in fact MAPIReadMail (save some bytes) :p
this function hangs...
Well i am going to sleep,
maybe tomorrow i find out why this is happening.
[attachment deleted by admin]