Chapter 20. Adapting the FindFirstFile/FindNextFile API

 

Design must always conform to constraint, must always require choice, and thus must always involve compromise.

 
 --Henry Petroski
 

Writing public libraries is the best way to make sure you write good code. It’s like: write good code as thou knowest thou should, or shame thyself in public.

 
 --Adi Shavit

Introduction

In this chapter we build on the knowledge gained from the previous chapters on glob_sequence (Chapter 17) and readdir_sequence (Chapter 19), by examining the file system enumeration facilities available on Windows in the form of the FindFirstFile/FindNextFile API. Although this API is similar to opendir/readdir API in that it is single-pass and returns one element at a time, it also ...

Get Extended STL, Volume 1: Collections and Iterators 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.