banner art

Previous Next


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


  HRESULT get_FreeSpaceQuota(
  long  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.


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 \


Library: WMSServerTypeLib.dll.

Platform: Windows ServerĀ 2003 family, Windows ServerĀ 2008 family.

See Also

Previous Next