TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Charles Gaefke
from: Thomas Seeling
date: 1996-12-22 16:42:22
subject: DosFindFirst

Hallo, Charles!

*** Am 20. Dezember 1996 um 19:00 schrieb Charles Gaefke an Jonathan De
Boyne Pollard:

 JD>> documentation again.  Note the MUST_HAVE_DIRECTORY attribute.
 CG>     FYI there is no such attribute under Watcom 10.x C/C++.

FYI this is a constant in a header file contained in the developer's
toolkit which Watcom delivers.

This constant is in there since at least OS/2 2.1 (I was too lazy to dig
out older toolkits). The file is BSEDOS.H. You need to define
INCL_DOSFILEMGR before including .


 /* DosOpen/DosQFHandState/DosQueryFileInfo et al file attributes; also */
 /* known as Dos File Mode bits... */
 #define FILE_NORMAL     0x0000
 #define FILE_READONLY   0x0001
 #define FILE_HIDDEN     0x0002
 #define FILE_SYSTEM     0x0004
 #define FILE_DIRECTORY  0x0010
 #define FILE_ARCHIVED   0x0020

 #define FILE_IGNORE     0x10000     /* ignore file attribute in */
 /* DosSetPath/File Info if */
 /* this bit is set*/

 #define MUST_HAVE_READONLY      ( (FILE_READONLY  << 8) | FILE_READONLY  )
 #define MUST_HAVE_HIDDEN        ( (FILE_HIDDEN    << 8) | FILE_HIDDEN    )
 #define MUST_HAVE_SYSTEM        ( (FILE_SYSTEM    << 8) | FILE_SYSTEM    )
 #define MUST_HAVE_DIRECTORY     ( (FILE_DIRECTORY << 8) | FILE_DIRECTORY )
 #define MUST_HAVE_ARCHIVED      ( (FILE_ARCHIVED  << 8) | FILE_ARCHIVED  )


Tschau...Thomas

--- E3-32/1.11-32/2.51+
* Origin: Die TeX-Box +49-6034-930021 V.34 -930022 ISDN 24h (2:244/1130.42)
SEEN-BY: 270/101 711/401 409 410 413 430 808 809 934 955 712/407 515 624 628
SEEN-BY: 713/317
@PATH: 244/1130 1634 24/888 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™.