Determine the file extension of this attachment?

G

George Hester

Here is the attachment's name and size:

travelogue ashore botulism longstanding snook said bequeath ajar solidify
counterclockwise scapular manipulable bobble anomalous ecstatic agile
straighten deliverance brethren buoyant trudge aching darkle chlorophyll
adjudge abutted puppeteer fantasist shivery .gif [13822]

Outlook 2000 does display this attachment in the e-mail. It is an embedded
image like this:

<a href="http://xwnjhr039.quitefunnyyes.com">

<img src="cid:LQPPS6MX5P" border=0></a>


I cannot get the image type because the name of the gif is more than 255
characters. How would I go about getting the image type using VBA in
Outlook 2000? Thanks.
 
K

Ken Slovak - [MVP - Outlook]

Can you use CDO or some other API that lets you get at the attachment's
properties (not the Outlook object model) if Attachment.FileName doesn't
work?

The property you'd want would be PR_ATTACH_LONG_FILENAME, property tag
&H3707001E.
 
G

George Hester

Thanks Ken I'll give that a try.

--

George Hester
_________________________________
Ken Slovak - said:
Can you use CDO or some other API that lets you get at the attachment's
properties (not the Outlook object model) if Attachment.FileName doesn't
work?

The property you'd want would be PR_ATTACH_LONG_FILENAME, property tag
&H3707001E.




George Hester said:
Here is the attachment's name and size:

travelogue ashore botulism longstanding snook said bequeath ajar solidify
counterclockwise scapular manipulable bobble anomalous ecstatic agile
straighten deliverance brethren buoyant trudge aching darkle chlorophyll
adjudge abutted puppeteer fantasist shivery .gif [13822]

Outlook 2000 does display this attachment in the e-mail. It is an
embedded
image like this:

<a href="http://xwnjhr039.quitefunnyyes.com">

<img src="cid:LQPPS6MX5P" border=0></a>


I cannot get the image type because the name of the gif is more than 255
characters. How would I go about getting the image type using VBA in
Outlook 2000? Thanks.
 
Top