home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / io / asyncio / readme.txt < prev   
Text File  |  1996-01-17  |  2KB  |  49 lines

  1. Pattern Matching Search
  2.  
  3.  
  4. SUMMARY
  5. =======
  6.  
  7. The PDC sample is a character mode program for searching the files in a 
  8. directory tree for a match against a pattern. It uses multiple threads, with 
  9. each thread processing a file at a time, accumulating its matches and 
  10. outputting them to standard output contiguously when it is done searching 
  11. a file.
  12.  
  13. MORE INFORMATION
  14. ================
  15.  
  16. This program demonstrates how to use many of the advanced operating system
  17. features provided by the Win32 API. The features that this program 
  18. demonstrates are:
  19.  
  20.   - Creating multiple threads, using synchronization objects
  21.   - Thread termination
  22.   - Virtual memory commitment versus reservation
  23.   - Structured exception handling, using an exception filter procedure 
  24.   - Enumeration of directory entries
  25.   - File mapping
  26.   - Asynchronous file I/O using a completion routine
  27.   - Synchronous file I/O
  28.  
  29. The command-line syntax is:
  30.  
  31. PDC [-h] [-v] [-y] [-a | -s | -m] [-t n] SearchString [DirectoryPath]
  32.  
  33. where:
  34.     h - Prints this message.
  35.     v - Generates verbose output.
  36.     y - Ignores case when doing comparisons.
  37.     a - Specifies that the program should use asynchronous file I/O to read 
  38.         the files being searched.
  39.     s - Specifies that the program should use synchronous file I/O to read 
  40.         the files being searched.
  41.     m - Specifies that the program should use mapped file I/O to read the 
  42.         files being searched.
  43.     t - Specifies the number of threads to use when doing the search. 
  44.         Default is 4 * the number of processors.
  45.     SearchString - Specifies the text to search for. Enclose in quotes if it 
  46.         contains spaces or punctuation.
  47.     DirectoryPath - Specifies the root of the tree to begin the search at. 
  48.         Defaults to the current directory.
  49.