Unit 'eventlog' Package
[Overview][Resource strings][Constants][Types][Classes][Index] [#fcl]

TEventLog.EventIDOffset

Offset for event ID messages identifiers.

Declaration

Source position: eventlog.pp line 119

published property TEventLog.EventIDOffset : DWord
  read FEventIDOffset
  write FEventIDOffset;

Description

EventIDOffset is the offset for the message formatting strings in the windows resource file. This property is ignored on other platforms.

The message strings in the file registered with the RegisterMessageFile call are windows resource strings. They each have a unique ID, which must be communicated to windows. In the resource file distributed by Free Pascal, the resource strings are numbered from 1000 to 1004. The actual number communicated to windows is formed by adding the ordinal value of the message's eventtype to EventIDOffset (which is by default 1000), which means that by default, the string numbers are:

1000
Custom event types
1001
Information event type
1002
Warning event type
1003
Error event type
1004
Debug event type

See also

RegisterMessageFile

  

Register message file.


Documentation generated on: Dec 27 2024