共用方式為


FbwfCacheThresholdNotification (Standard 7 SP1)

7/8/2014

This function enables applications to be signaled when the remaining cache memory falls below a specified size.

Syntax

ULONG FbwfCacheThresholdNotification(
    ULONG threshold,
    HANDLE event
);

Parameters

  • threshold
    [in] Remaining cache size in megabytes below which the event will be signaled.
  • event
    [in] The event handle that will be signaled when the available cache space drops below the specified threshold.

Return Value

This function may return the following:

Return value

Description

ERROR_SUCCESS

The operation completed successfully.

ERROR_INVALID_FUNCTION

If the filter is disabled for the current session.

ERROR_INVALID_HANDLE

If event is not a valid handle.

ERROR_INVALID_PARAMETER

If threshold is zero or larger than the current cache threshold.

Remarks

This function is called by the application for the current session.

Requirements

OS Versions: Standard 7

Header: Fbwfapi.h

Link Library: Fbwflib.lib

See Also

Reference

FbwfEnableFilter
FbwfSetCacheThresholdEx

Concepts

FBWF API