Overview

In Windows CE, you can think of a file as a collection of bytes stored under a unique name in the Object Store. You can seek to any byte offset and read or write a block of bytes of any size.

Figure 2.1 shows two ways that you will access files in Windows. Files typically contain either text or binary data in the form of structures stored directly onto the disk. You can use the ReadFile and WriteFile functions toaccess these characters or structures. If you have ever used the fread and fwrite functions in stdio.h>, you will find the use of these API functions very similar.

Figure 2.1. Text files and files of structures

These same ...

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.