O'Reilly logo

Extended STL, Volume 1: Collections and Iterators by Matthew Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required