dirlist.h
资源名称:DOS系统的源代码.rar [点击查看]
上传用户:xiaoan1112
上传日期:2013-04-11
资源大小:19621k
文件大小:1k
源码类别:
操作系统开发
开发平台:
Visual C++
- /*
- COW : Character Oriented Windows
- dialog.h : dialog specific stuff
- */
- /* File find info; it's the DOS 3 structure, but we mimic it for OS/2. */
- typedef struct _fde
- {
- char reserved[21]; /* MSDOS requires this */
- char atr; /* File attribute */
- WORD wTime; /* File time of last write */
- WORD wDate; /* File date of last write */
- DWORD cbFile; /* File size in bytes */
- char szName[13]; /* File name packed */
- } FDE; /* Find directory entry */
- #ifndef DOS5
- /* FCB for fast dirlist fill */
- typedef struct _fcb
- {
- BYTE dn; /* drive number */
- char rgchFile[8]; /* file name -- blank filled */
- char rgchExt[3]; /* extension -- blank filled */
- BYTE reserved[25]; /* DOS usage */
- } FCB; /* File Control Block */
- #endif
- #define atrFile 0
- #define atrDir 0x10
- #define atrError ((WORD) -1) /* error return from AtrOfPath */