ItemAttachmentGetName()

Returns the name of an attachment.

Token ID

AFTKN_ITEM_ATTACHMENT_NAME or 669

Syntax

ANSISTRING ItemAttachmentGetName(ANSISTRING MessageID;
                                  WORD Index)

Parameters

MessageID As ANSISTRING

Unique item identifier, returned by ItemMessageIDFromView().

Index As WORD

Attachment index number (zero-based).

Return Values

ANSISTRING. Attachment name.

Remarks

IMPORTANT:Return is based on a difference in attachment class type. An attachment of class type "Message" will be its MessageID; an attachment of class type "Embedded OLE object" currently returns an error; and, an attachment of class type "File" is path\displayname (if using X00 for the msgID or just DisplayName if using the actual MsgID).