RegisterForLogWriteNotification function (clfsmgmtw32.h)

The RegisterForLogWriteNotification function is called by a managed log client to enable or disable log write notifications.

Syntax

CLFSUSER_API BOOL RegisterForLogWriteNotification(
  [in] HANDLE hLog,
  [in] ULONG  cbThreshold,
  [in] BOOL   fEnable
);

Parameters

[in] hLog

A handle to the log on which to resolve the log full condition.

[in] cbThreshold

Number of bytes to be written to the log file before the notification is sent.

[in] fEnable

If TRUE, the notification is enabled. If FALSE, the notification is disabled.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError. Valid values include the following:

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header clfsmgmtw32.h
Library ClfsW32.lib
DLL ClfsW32.dll

See also

CLFS Management Functions