Bitmask of flags used to represent the table event type. The following flags can be set:
Indicates at a high level that something about the table has changed. The table's state is as it was before the event. This means that all PR_INSTANCE_KEY (PidTagInstanceKey) properties, bookmarks, current positioning, and user interface selections are still valid. Handle this event by rereading the table. Service providers that do not want to implement rich table notifications send TABLE_CHANGED events instead of more detailed events to indicate a particular type of change.
An error has occurred, usually during the processing of an asynchronous operation. Errors during the processing of the following methods can generate this event:
After receiving a TABLE_ERROR event, a client cannot rely on the accuracy of the table contents. Also, pending notifications about other changes might be lost. The IMAPITable::GetLastError method might not provide any additional information about the error because it was generated at some previous point, not necessarily from the last method call.
The data in the table should be reloaded. Service providers send TABLE_RELOAD when, for example, the underlying data is stored in a database and the database is replaced. Handle this event by assuming that nothing about the table is still valid and by rereading the table. All bookmarks, instance keys, status and positioning information are invalid.
A restriction operation initiated with an IMAPITable::Restrict method call has completed.
A new row has been added to the table and the corresponding object saved. TABLE_ROW_ADDED events are generated after a call to the IMAPIProp::SaveChanges method.
A row has been removed from the table. The propPrior member is set to NULL.
A row has been changed. The row member contains the affected properties for the row. Multiple TABLE_ROW_MODIFIED events are sent in the order that they appear in the table view.
TABLE_ROW_MODIFIED events are sent after changes to the corresponding object have been committed with a call to the IMAPIProp::SaveChanges method. If the modified row is now the first row in the table, the value of the property tag in the propPrior member is PR_NULL (PidTagNull).
A column setting operation initiated with an IMAPITable::SetColumns method call has completed.
A table sorting operation initiated with an IMAPITable::SortTable method call has completed.
HRESULT value for the error that has occurred, if the ulTableEvent member is set to TABLE_ERROR.
SPropValue structure for the PR_INSTANCE_KEY property of the affected row.
SPropValue structure for the PR_INSTANCE_KEY property of the row before the affected one. If the affected row is the first row in the table, propPrior must be set to PR_NULL and not zero. Zero is not a valid property tag.
SRow structure describing the affected row. This structure is filled for all table notification events. For table notification events that do not pass row data, the cValues member of the SRow structure is set to zero and the lpProps member is set to NULL.
Because this SRow structure is read-only; clients must make a copy of it if they want to make modifications. The ScDupPropset function can be used to make the copy.
The TABLE_NOTIFICATION structure is one of the members of the union of structures included in the info member of the NOTIFICATION structure. The info member includes a TABLE_NOTIFICATION structure when the ulEventType member of the structure is set to fnevTableModified.
The order and type of columns in the row member reflect the order and type that was in effect at the time that the notification was generated. The order and type at the time that the notification was generated is not necessarily the same as when the notification was delivered.
For more information about notification, see the topics described in the following table.
Discussion of how service providers can use the IMAPISupport method to generate notifications.
Because table notifications are asynchronous, clients can receive notification of an added row after learning about the addition through another means. It is possible to receive a TABLE_ERROR event when there is an error in an IMAPITable::Sort, IMAPITable::Restrict, or IMAPITable::SetColumns method or when an underlying process attempts to update a table with, for example, new or modified rows.