RegisterForLogWriteNotification function

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

Syntax


BOOL WINAPI RegisterForLogWriteNotification(
  _In_  HANDLE hLog,
  _In_  ULONG cbThreshold,
  _In_  BOOL fEnable
);

Parameters

hLog [in]

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

cbThreshold [in]

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

fEnable [in]

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:

ERROR_INVALID_HANDLE

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

ClfsMgmtw32.h

Library

ClfsW32.lib

DLL

ClfsW32.dll

See also

CLFS Management Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft