Step Into C · Lesson 25 · Win32 in Depth
Files & Directories
CreateFileW dispositions, sizes and seeking, listing directories, moving and deleting.
- ~40 minreading and coding
- 4missions
- membersaccess
- Win32real Windows API
Part of Step Into C. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.
Files, directories, pipes, devices and consoles are all opened with CreateFileW. The creation disposition decides what happens when the file does or doesn't exist:
In this lesson
- CreateFileW opens almost everything
- Sizes and positions are 64-bit
- Listing a directory
- Directories and paths
Missions
- Dispositions
- Size and seek
- List a directory
- Move and delete