BOOL CloseFile( |
|
BOOL bPurgeMessages |
|
); |
The CloseFile method closes the current message store.
Parameters
- bPurgeMessages
- An integer value which specifies if deleted messages are purged
from the message store. A non-zero value specifies that all
messages marked for deletion will be removed from the message
store. A value of zero specifies that deleted messages will not be
removed from the store.
Return Value
If the method succeeds, the return value is non-zero. If the
method fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
The CloseFile method closes the storage file that was
previously opened, releasing all of the memory allocated for the
message store and optionally purging all deleted messages. Note that
the current message store will be closed by the class destructor when
the class object is deleted or goes out of scope.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csmsgv10.lib
See Also
CopyFile,
OpenFile,
PurgeFile
|