Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

MAPIAttachment

 

class MAPIAttachment : public MAPIObject

Outlook message attachment.

 

 

Constructor detail


 

MAPIAttachment()

Default constructor.

 

Public Method List


 

String GetDisplayName()

Gets the display name of the message store.

 


 

String GetFileName()

Gets the suggested file name for saving the attachment. File name length is restricted to eight characters plus a three-character extension.

 


 

String GetLongFileName()

Gets the suggested file name for saving the attachment.

 


 

bool SetDisplayName(const String &szDisplayName)

Sets with szDisplayName the display name of the message store.

 


 

bool SetFileName(const String &szFileName)

Sets with szFileName the suggested file name for saving the attachment. File name length is restricted to eight characters plus a three-character extension.

 


 

bool SetLongFileName(const String &szLongFileName)

Sets with szLongFileName the suggested file name for saving the attachment.

 


 

bool LoadAttachment(const String &szPath)

Loads an attachment from file szPath.

 


 

bool SaveAttachment(const String &szPath)

Saves an attachment to file szPath.

 


 

bool OpenStream(bool bCreate = false)

Opens an attachment. If bCreate. is true, a new attachment is created.

 


 

int Read(BYTE* pData, int nCount)

Reads nCount bytes from last attachment stream opened with OpenStream(false) and sets it in pData.

 


 

int Write(BYTE* pData, int nCount)

Writes nCount bytes from pData to last attachment stream opened with OpenStream(true).

 


 

void CloseStream()

Closes last opened stream.

 

 

Do you want to contribute?