Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compacts the contents of all message folders.
Syntax
HRESULT CompactAll(
[in] DWORD dwReserved
);
Parameters
-
dwReserved [in]
-
Type: DWORD
Reserved value. Must be 0 or 1. If the value is 0, the user will be presented with a UI if the compacting operation fails. If the value is 1, the user will not be shown the UI if the compacting operation fails.
Return value
Type: HRESULT
Returns S_OK if successful, or one of the following error values.
Return code | Description |
---|---|
|
The value of dwReserved is not 0 or 1. |
|
The namespace has not been initialized. To initialize the namespace, call IStoreNamespace::Initialize. |
Remarks
Messages marked as deleted will be permanently removed when compacted.
Requirements
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Product |
Outlook Express 6.0 |
Header |
|
IDL |
|
DLL |
|