MapiFileTagExt (Simple MAPI)

A MapiFileTagExt structure specifies a message attachment's type at its creation and its current form of encoding so that it can be restored to its original type at its destination.

Quick Info

Header file: MAPI.H

typedef struct { 
     ULONG ulReserved; 
     ULONG cbTag; 
     LPBYTE lpTag; 
     ULONG cbEncoding; 
     LPBYTE lpEncoding 
} MapiFileTagExt, FAR *lpMapiFileTagExt; 
 

Members

ulReserved
Reserved; must be zero.
cbTag
The size, in bytes, of the value defined by the lpTag member.
lpTag
Pointer to an X.400 object identifier indicating the type of the attachment in its original form, for example "Microsoft Excel worksheet".
cbEncoding
The size, in bytes, of the value defined by the lpEncoding member.
lpEncoding
Pointer to an X.400 object identifier indicating the form in which the attachment is currently encoded, for example MacBinary, UUENCODE, or binary.

Remarks

A MapiFileTagExt structure defines the type of an attached file for purposes such as encoding and decoding the file, choosing the correct application to launch when opening it, or any use that requires full information regarding the file type. Client applications can use information in the lpTag and lpEncoding members of this structure to determine what to do with an attachment.

See Also

PR_ATTACH_TAG, PR_ATTACH_ENCODING, MapiFileDesc