The document is archived and information here might be outdated


This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Provides access to the status table, a table that contains information about all the MAPI resources in the session.

HRESULT GetStatusTable(
  ULONG ulFlags,


[in] A bitmask of flags that determines the format for columns that are character strings. The following flag can be set:


The string columns are in Unicode format. If the MAPI_UNICODE flag is not set, the string columns are in ANSI format.


[out] A pointer to a pointer to the status table.


The table was successfully returned.

The IMAPISession::GetStatusTable method provides access to the status table that contains information about all of the MAPI resources in the session. There is one row in the table for information about the MAPI subsystem, one row for the MAPI spooler, one row for the integrated address book, and one row for each service provider in the profile.

For a complete list of required and optional columns in the status table, see Status Tables.

Setting the MAPI_UNICODE flag in the ulFlags parameter affects the format of the columns returned from the IMAPITable::QueryColumns and IMAPITable::QueryRows methods. This flag also controls the property types in the sort order returned by the IMAPITable::QuerySortOrder method.

For MFCMAPI sample code, see the following table.






MFCMAPI uses the IMAPISession::GetStatusTable method to obtain the status table to be rendered.

© 2016 Microsoft