Monitoring Event sink # 6 - Using Store Event Sink Bit Flags


In Event sink development, we have event sink bit flags. These flags can be used to identify which event sink was fired.


The bit flags are implemented in EXEVTSNK.TLB, which is installed with the Exchange Software Development Kit (SDK). Then these flags are passed through the LFLAGS parameter of the following Exchange store event interface methods:

Event Sink Flags Hexidecimal Value Decimal Value Description
EVT_NEW_ITEM 0x00000001 1 The item is newly created.
EVT_IS_COLLECTION 0x00000002 2 The item is a folder.
EVT_REPLICATED_ITEM 0x00000004 4 The item is being replicated from another location.
EVT_IS_DELIVERED 0x00000008 8 The item is being saved as a result of message delivery.
EVT_SOFTDELETE 0x00000010 16 The item was deleted.
EVT_HARDDELETE 0x00000020 32 The item was permanently deleted.
EVT_INITNEW 0x00000040 64 First firing of the event sink. This is useful for initialization purposes. It is set only once during the lifetime of a created event sink.
EVT_MOVE 0x00000100 256 The item was saved/deleted due to a move.
EVT_COPY 0x00000200 512 The item was saved due to a copy.
EVT_SYNC_BEGIN 0x01000000 16777216 The begin phase of the synchronous event.
EVT_SYNC_COMMITTED 0x02000000 33554432 The commit phase of the synchonous event.
EVT_SYNC_ABORTED 0x04000000 67108864 The event was aborted.
EVT_INVALID_SOURCE_URL 0x20000000 536870912 Unable to get the source URL.
EVT_INVALID_URL 0x40000000 1073741824 Unable to get the target URL.
EVT_ERROR 0x80000000 2147483648 An error during the event.