Hello! I have a following problem: While I call MAPIReadMail with a parameter MapiPeek MAPI32 saves attachments into temporary directory and creates structures MapiFileDesc: public class MapiFileDesc { public int reserved; public int flags; public int position; public string path; public string name; public IntPtr type; } When I read this structure I see that the name equals to the path. I would like to have a original name of attachment in the name instead of a path to saved file in a temporary directory.. Have you any solutions this problem? Thank you for your help ! Adam Stachura
There is no original path, especially for the received messages. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Adam Stachura" wrote in message news:OwztmbbWIHA.2368@TK2MSFTNGP05.phx.gbl... > Hello! > > I have a following problem: > > While I call MAPIReadMail with a parameter MapiPeek MAPI32 saves > attachments into temporary directory and creates structures MapiFileDesc: > > public class MapiFileDesc > { > public int reserved; > public int flags; > public int position; > public string path; > public string name; > public IntPtr type; > } > > When I read this structure I see that the name equals to the path. I would > like to have a original name of attachment in the name instead of a path > to saved file in a temporary directory.. > > Have you any solutions this problem? > > Thank you for your help ! > > Adam Stachura > > > > > > > >