IWMSLoggingAdmin::put_FreeSpaceQuota

banner art

Previous Next

IWMSLoggingAdmin::put_FreeSpaceQuota

The put_FreeSpaceQuota method specifies the minimum percentage of disk space that must remain available after data has been written to a log file.

Syntax

  HRESULT get_FreeSpaceQuota(
  long  lFreeSpaceQuota
);

Parameters

lFreeSpaceQuota

[in] long containing the minimum free disk space remaining, as a percentage of total disk space. The percentage must not be greater than 100 or less than 0.

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_INVALIDARG 0x80070057 The lFreeSpaceQuota parameter is greater than 100 or less than 0.

Remarks

The server stops logging data when the remaining disk space percentage equals the amount specified by this 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