I am developing an application that will tell attachment in email using MAPI.
1) When I send an email, the sender name is coming up in some systems and there is a problem in others. I have implemented the technique that is provided in MFCMAPI ( I have used AdviseSink Notifications ).
2) Where sender name is not coming, its giving "0x8004010f <Bad Ptr>" values. When I can retrive PR_MESSAGE_DELIVERY_TIME, then there shouldn't be any problem to retrieve sender name of an email. And I can't even check for bad pointer.
3) 0x800A001E gives sender name of email when the mailbox is connected to Exchange and 0x800D001E gives sender name of email when the mailbox is connected to Internet email. Kindly name these properties. And, even these properties give bad pointer values when AdviseSink Notifications are implemented.
Comments: ** Comment from web user: sgriffin **
0x8004010f is the same thing as MAPI_E_NOT_FOUND. It's not a bad pointer. You're not checking the type of the returned property. It was PT_ERROR, which means you should be looking at the .err member and interpreting it as an error code.
There's no inconsistency. You need to read about named properties:
I'm closing this bug. Please don't add further to it. If you want to discuss something, post on the discussions tab.