MimeExportMessage
BOOL MimeExportMessage(
HMESSAGE hMessage,  
LPCTSTR lpszFileName  
);

The MimeExportMessage function writes the specified message to a file. If the file does not exist, it will be created. If it does exist, it will be overwritten with the contents of the message.

Parameters

hMessage
Handle to the message.
lpszFileName
Pointer to a null-terminated string which specifies the name of the file to be created from the message. If this parameter is NULL, the contents of the message will be copied to the system clipboard.

Return Value

If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get extended error information, call MimeGetLastError.

Requirements

Client: Requires Windows Vista, Windows XP or Windows 2000 Professional.
Server: Requires Windows Server 2008, Windows Server 2003 or Windows 2000 Server.
Header: Include cstools6.h.
Library: Use csmsgav6.lib.
Unicode: Implemented as Unicode and ANSI versions.

See Also

MimeCreateMessage, MimeExportMessageEx, MimeImportMessage, MimeImportMessageEx, MimeSetExportOptions


Copyright © 2008 Catalyst Development Corporation. All rights reserved.