Platform SDK: SMTP Server Events |
[This is preliminary documentation and subject to change.]
Copy the entire content to a specified file with optional asynchronous completion.
[local] HRESULT CopyContentToFile( [in] PFIO_CONTEXT pFIOCopy, [in,unique] IMailMsgNotify *pNotify );
Value | Description |
---|---|
S_OK | Success. The method completed synchronously. |
MAILMSG_S_PENDING | Success. The operation will complete asynchronously. When it completes, you will be notified through the interface you passed using the pNotify parameter. The result of the operation will be returned with the notification callback method. |
You supply the I/O handle used to write the content within the FIO_CONTEXT structure. This handle must have been created using the FILE_FLAG_OVERLAPPED flag and associated with an FIO_CONTEXT structure using the AssociateFile function. The HANDLE value within the FIO_CONTEXT structure need not be a file on the file system, but can be any I/O handle that supports asynchronous I/O (overlapped) operations.
This method is marked with the [local] IDL attribute. This means no proxy/stub code is generated for the header file, and the method can only be called on an interface in the same apartment (i.e. no marshalling can occur).
IMailMsgNotify, IMailMsgNotify::Notify, AssociateFile