Windows File API Samples

It is fairy difficult for a windows fresh developer to find a full and functional File API Samples on MSDN or somewhere on the internet.

When I started windows programming, I wrote dozens of file api samples. Although I am not working on windows now, these samples may be helpful to someone else who are reading this page.  So I wrote them down and hopes some of the samples useful for someone.

Here’s a list of the Samples:

1. Before start each of the sampels, do include the header file described here:

Windows File API Samples Part 1: Common log function

2. Copy file with process bar showing or other callback:

 Windows File API Samples Part 2: CopyFileEx

3. Create file mapping by CreateFileMapping and MapViewOfFile

Windows File API Samples Part 3: Create File Mapping

4. CreateFileMapping  and FlushViewOfFile

5. CreateHardLink

6. DeleteFile

7. EncryptFile


Digg This
Reddit This
Stumble Now!
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)