Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 18 Jan 2008 10:50:39 +0100,    group: microsoft.public.platformsdk.mapi        back       


Problem with MAPIReadMail and MapiFileDesc structure   
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
date: Fri, 18 Jan 2008 10:50:39 +0100   author:   Adam Stachura

Re: Problem with MAPIReadMail and MapiFileDesc structure   
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
>
>
>
>
>
>
>
>
date: Fri, 18 Jan 2008 10:32:08 -0700   author:   Dmitry Streblechenko

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us