4.6. Combining Capabilities

It is possible to combine the concepts learned in this chapter with concepts learned in Chapter 3 and concepts from other chapters to create very interesting search capabilities. For example, you might want to use the recursive drive-walking code from Listing 3.7, along with the directory-walking code demonstrated above, to create a program that connects to every drive on the network and searches every directory on each one for a specific file.

The code in Listing 4.7 demonstrates an advanced searching program using capabilities from this chapter as well as from Chapter 3. The program searches all directories on all drives connected to the machine that is looking for the indicated file. When the program starts, it ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 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.