A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

MFCMapi access to Attachment Filenames



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 24th 07, 03:13 AM posted to microsoft.public.outlook
AndyH
external usenet poster
 
Posts: 17
Default MFCMapi access to Attachment Filenames

I am using the MFCMapi utility to dump Outlook's Mapi properties to a
file that I can read programmatically. I have this working well for
all properties except for the Filenames of attachments.

I cannot find any Tags/Properties that reference Attachments
Filenames.

Any suggestions please?

Regards,
Andrew


  #2  
Old July 24th 07, 02:17 PM posted to microsoft.public.outlook
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default MFCMapi access to Attachment Filenames

You're accessing the Attachments table?

The FileName would be PR_ATTACH_FILENAME (0x3704001E) and/or
PR_ATTACH_LONG_FILENAME (0x3707001E). DisplayName would be PR_DISPLAY_NAME
(0x3001001E). All are PT_STRING8 property types.

A better place to post programming questions like this would be either in
the MAPI group (microsoft.public.win32.programmer.messaging) or in an
Outlook programming group (microsoft.public.outlook.program_vba).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"AndyH" wrote in message
...
I am using the MFCMapi utility to dump Outlook's Mapi properties to a
file that I can read programmatically. I have this working well for
all properties except for the Filenames of attachments.

I cannot find any Tags/Properties that reference Attachments
Filenames.

Any suggestions please?

Regards,
Andrew



  #3  
Old July 25th 07, 02:27 AM posted to microsoft.public.outlook
AndyH
external usenet poster
 
Posts: 17
Default MFCMapi access to Attachment Filenames

Thank you Ken for the tips on where to post this sort of question. I
will certainly look there in the future. In the mean time if I could
just add to this thread again.

I have tried to select the codes you refer to, but the resulting codes
in the output table become 0x3704000A, 0x3707000A and 0x3001000A as
follows:

*************************************************
Tag: 0x3704000A
Type: PT_ERROR
Other Names: PR_ATTACH_FILENAME, PR_ATTACH_FILENAME_A,
PR_ATTACH_FILENAME_W, "Err:0x8004010F=MAPI_E_NOT_FOUND", ""

Tag: 0x3707000A
Type: PT_ERROR
Other Names: PR_ATTACH_LONG_FILENAME, PR_ATTACH_LONG_FILENAME_A,
PR_ATTACH_LONG_FILENAME_W, "Err:0x8004010F=MAPI_E_NOT_FOUND", ""

Tag: 0x3001000A
Type: PT_ERROR
Other Names: PR_DISPLAY_NAME, PR_DISPLAY_NAME_A, PR_DISPLAY_NAME_W,
"Err:0x8004010F=MAPI_E_NOT_FOUND", ""
*************************************************

I do not know how to interpret these error statements. I guess I
don't understand the process of accessing the Attachments table.
Any help in solving this would be much appreciated.

Regards,
Andrew



On Tue, 24 Jul 2007 09:17:33 -0400, "Ken Slovak - [MVP - Outlook]"
wrote:

You're accessing the Attachments table?

The FileName would be PR_ATTACH_FILENAME (0x3704001E) and/or
PR_ATTACH_LONG_FILENAME (0x3707001E). DisplayName would be PR_DISPLAY_NAME
(0x3001001E). All are PT_STRING8 property types.

A better place to post programming questions like this would be either in
the MAPI group (microsoft.public.win32.programmer.messaging) or in an
Outlook programming group (microsoft.public.outlook.program_vba).


  #4  
Old July 25th 07, 01:53 PM posted to microsoft.public.outlook
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default MFCMapi access to Attachment Filenames

I don't use MFCMAPI so I can't help with specifics of that. I use OutlookSpy
as my MAPI viewer. In OutlookSpy you don't get attachment properties from
the properties of an item, you have to go to the Attachment Table tab. In
MAPI terms you have to issue a request to open the Attachments table on the
item. How you'd do that with MFCMAPI I have no idea.

Stephen Griffin posts in the messaging group I pointed you to, and he's the
author of MFCMAPI, so if anyone would know the specifics of that program he
would.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"AndyH" wrote in message
...
Thank you Ken for the tips on where to post this sort of question. I
will certainly look there in the future. In the mean time if I could
just add to this thread again.

I have tried to select the codes you refer to, but the resulting codes
in the output table become 0x3704000A, 0x3707000A and 0x3001000A as
follows:

*************************************************
Tag: 0x3704000A
Type: PT_ERROR
Other Names: PR_ATTACH_FILENAME, PR_ATTACH_FILENAME_A,
PR_ATTACH_FILENAME_W, "Err:0x8004010F=MAPI_E_NOT_FOUND", ""

Tag: 0x3707000A
Type: PT_ERROR
Other Names: PR_ATTACH_LONG_FILENAME, PR_ATTACH_LONG_FILENAME_A,
PR_ATTACH_LONG_FILENAME_W, "Err:0x8004010F=MAPI_E_NOT_FOUND", ""

Tag: 0x3001000A
Type: PT_ERROR
Other Names: PR_DISPLAY_NAME, PR_DISPLAY_NAME_A, PR_DISPLAY_NAME_W,
"Err:0x8004010F=MAPI_E_NOT_FOUND", ""
*************************************************

I do not know how to interpret these error statements. I guess I
don't understand the process of accessing the Attachments table.
Any help in solving this would be much appreciated.

Regards,
Andrew


  #5  
Old July 26th 07, 02:26 AM posted to microsoft.public.outlook
AndyH
external usenet poster
 
Posts: 17
Default MFCMapi access to Attachment Filenames

Thank you very much for your feedback, it has been most helpful
regards,
Andrew

On Wed, 25 Jul 2007 08:53:57 -0400, "Ken Slovak - [MVP - Outlook]"
wrote:

I don't use MFCMAPI so I can't help with specifics of that. I use OutlookSpy
as my MAPI viewer. In OutlookSpy you don't get attachment properties from
the properties of an item, you have to go to the Attachment Table tab. In
MAPI terms you have to issue a request to open the Attachments table on the
item. How you'd do that with MFCMAPI I have no idea.

Stephen Griffin posts in the messaging group I pointed you to, and he's the
author of MFCMAPI, so if anyone would know the specifics of that program he
would.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to export multiple emails with attachment to excel or access fari Outlook - General Queries 0 April 23rd 07 11:28 AM
Sending an attachment to Outlook Express from ACCESS David Outlook and VBA 1 August 31st 06 05:17 PM
Import attachment from Outlook into Access Ocean Outlook and VBA 1 March 27th 06 08:58 PM
Outlook not displaying attachment from Access via code [email protected] Outlook - General Queries 4 February 27th 06 11:30 PM
Access to an attachment is blocked tbahr Outlook Express 4 January 13th 06 08:39 PM


All times are GMT +1. The time now is 06:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.