5
VERIFY_HRESULT(CeRapiInit());
7
CEDB_FIND_DATA* find_data = NULL;
10
TEST_NOT_FALSE(CeFindAllDatabases(0, 0xffff, &db_count, &find_data));
12
printf("Number of databases: %u\n", db_count);
13
for (unsigned i = 0; i < db_count; i++)
14
printf("Database %3u: \"%s\" (oid=0x%x, type=0x%x, rows=%u)\n", i,
15
from_unicode(find_data[i].DbInfo.szDbaseName),
17
(unsigned)find_data[i].DbInfo.dwDbaseType,
18
find_data[i].DbInfo.wNumRecords);
20
TEST_HRESULT(CeRapiFreeBuffer(find_data));
22
VERIFY_HRESULT(CeRapiUninit());
23
return TEST_SUCCEEDED;