Platform SDK: MAPI

Determining a Table's End

A common error is to assume that the end of the table has been reached when:

Note  The only time that a caller can assume that the cursor is positioned at the end of the table for a positive row count or at the beginning of the table for a negative row count is when the value S_OK and zero rows are returned. The value MAPI_E_NOT_FOUND is never returned.