Listing Database Information

The functions CeFindFirstDatabaseEx and CeFindNextDatabaseEx can be used to list all databases in a mounted database volume. You can filter for particular database types based on the dwDbaseType values specified when the database is created.

CeFindFirstDatabaseEx sets up the database enumeration and is passed the handle to the mounted database volume to be enumerated, and the dwDbaseType value specifying the type of database to filter. This value can be zero to enumerate all databases. The function returns a handle which is used when calling CeFindNextDatabaseEx, and this handle must be closed when finished by calling CloseHandle.

Listing 4.17 shows calls to CeFindFirstDatabaseEx and CeFindNextDatabaseEx to list all ...

Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.