View Single Post
  #1  
Old February 12th 09, 09:09 AM posted to microsoft.public.outlook.program_addins
Daman via OfficeKB.com
external usenet poster
 
Posts: 1
Default Deleting mails in the Exchange using MAPI

Hi,

I am trying to delete mails from the Exchange using the following code :
(using MAPI33.dll and C#)

result = inbox.DeleteMessages(messages, IntPtr.Zero, null, MAPIFolder.FLAGS.
Default);
//messages if of type MAPI33.ENTRYID[]

result gives me back a NoAccess (2147942405) value.

Can anyone tell me what am I doing wrong here ?

Thanks in advance !!!
Daman

--
- Daman

Message posted via http://www.officekb.com

Ads