Sign in Join
FPDoc Onlineexperiment

TEventLog.UnRegisterMessageFile function

Member of TEventLogpublicIn unit EventLog

Unregister the message file (needed on windows only).

Declaration

pascal
function UnRegisterMessageFile: Boolean; virtual

Function result

True if the message file was successfully unregistered, false if an error occurred.

Description

UnRegisterMessageFile can be used to unregister a message file previously registered with RegisterMessageFile. This function is usable only on windows, it has no effect on other platforms. Note that windows locks the registered message file while viewing messages, so unregistering helps to avoid file locks while event viewer is open.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.