TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Gautam Lad
from: Coridon Henshaw
date: 1996-12-15 22:32:54
subject: DosFindFirst

On Friday December 13 1996 at 13:27, Gautam Lad wrote to **Anybody**:

 GL> By any chance is DosFindFirst supposed to return directories upon search?

Not unless you tell it to.  You must call DosFindFirst with the
FILE_DIRECTORY option in the 3rd parameter if you want directories.  You
must also add the MUST_HAVE_DIRECTORY option if you _only_ want
directories.

Example:

rc = DosFindFirst(Buffer, &FindHandle, FILE_DIRECTORY |
MUST_HAVE_DIRECTORY, &FindBuffer, sizeof(FindBuffer), &NumEntries,
2);

--- GoldED/2 2.50 UNREG
* Origin: For sale: 30 pieces of silver. Contact N. Gingrich. (1:250/820)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 250/820 99 3615/50 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.