JetGetObjectInfo() does not get record count by default

We recently had the following question:  I am trying to get the space occupied by each table that we have by using JetGetObjectInfo. The api succeeds but it returns 0 for both number of cRecords and cPages.   JET_OBJECTINFO tableInfo = {0}; hr = ::JetGetObjectInfoA(m_spSession->GetSessionId(), m_dbId, JET_objtypTable, nullptr, strTableName, &tableInfo, sizeof(tableInfo), JET_ObjInfo); if (FAILED(hr)) return…

0