IWMSLoggingAdmin::get_FreeSpaceQuota
Previous | Next |
IWMSLoggingAdmin::get_FreeSpaceQuota
The get_FreeSpaceQuota method retrieves the minimum percentage of disk space that must remain available after data has been written to a log file.
Syntax
HRESULT get_FreeSpaceQuota( long* plFreeSpaceQuota );
Parameters
plFreeSpaceQuota
[out] Pointer to a long containing the minimum free disk space remaining, as a percentage of total disk space.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Number | Description |
E_FAIL | 0x80004005 | The logging plug-in could not be found. |
E_POINTER | 0x80004003 | The plFreeSpaceQuota parameter is NULL. |
Remarks
The server stops logging data when the remaining disk space percentage equals the amount specified by the put_FreeSpaceQuota method.
Example Code
#include <windows.h> #include <atlbase.h> // Includes CComVariant. // To access system plug-in interfaces, the // entire type library must be imported as shown. #import "WMSServerTypeLib.dll" no_namespace named_guids \ raw_interfaces_only
Requirements
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
Previous | Next |