共用方式為


FbwfInitializeNotifications (Standard 7 SP1)

7/8/2014

This function starts the worker thread that sends cache-threshold notifications.

Syntax

ULONG WINAPI FbwfInitializeNotifications(VOID);

Parameters

None.

Return Value

This function may return the following:

Return value

Description

ERROR_SUCCESS

The operation completed successfully.

Remarks

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

When using the FBWF API FbwfCacheThresholdNotification function, call FbwfInitializeNotifications and FbwfUninitializeNotifications to start and stop respectively the worker thread required for sending cache-threshold notifications.

The function-call sequence

  1. Call FbwfInitializeNotifications (to start notifications).

  2. Call FbwfCacheThresholdNotification (to set the cache-memory threshold; call zero or more times).

  3. Call FbwfUninitializeNotifications (to stop notifications when they are no longer required).

You should call FbwfInitializeNotifications at least once for applications that might use FbwfCacheThresholdNotification function later.

To close the FBWF library gracefully in a process, you should balance each successful call to FbwfInitializeNotifications with a corresponding call to FbwfUninitializeNotifications.

Because there is no way to control the order that in-process servers are loaded or unloaded, do not call FbwfInitializeNotifications or FbwfUninitializeNotifications from the DllMain function.

Requirements

OS Versions: Standard 7

Header: Fbwfapi.h

Link Library: Fbwflib.lib

See Also

Reference

FbwfCacheThresholdNotification
FbwfUninitializeNotifications

Concepts

FBWF API