⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 file.h

📁 nucleus 文件系统,内核和彩色图形系统,在小系统上非常好用
💻 H
字号:
/*************************************************************************/
/*                                                                       */
/*         Copyright (c) 1997 - 1999 Accelerated Technology, Inc.        */
/*                                                                       */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the      */
/* subject matter of this material.  All manufacturing, reproduction,    */
/* use, and sales rights pertaining to this subject matter are governed  */
/* by the license agreement.  The recipient of this software implicitly  */
/* accepts the terms of the license.                                     */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                            VERSION          */
/*                                                                       */
/*      file.h                                           1.9             */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      All                                                              */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      Equates and structures for DOS system calls for read/write/      */
/* search.                                                               */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Robert G. Burrill, Accelerated Technology, Inc.                  */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*                                                                       */
/*************************************************************************/


typedef struct _dirRec{		/* FileQuery - directory record		*/
	word	time;				/* File creation time			*/
	word	date;				/* File creation date			*/
	long	fSize;				/* File size (bytes)			*/
	byte	attribute;			/* File attributes				*/
	byte	fname[15];			/* File name (NULL terminated)	*/
} dirRec;

typedef struct _DOSdirRec{	/* MSDOS  directory record			*/
	byte	DOSreserved[21];
	byte	DOSattribute;		/* File attributes				*/
	word	DOStime;			/* File creation time			*/
	word	DOSdate;			/* File creation date			*/
	long	DOSfSize;			/* File size (bytes)			*/
	byte	DOSfname[14];		/* File name					*/
} DOSdirRec;

typedef struct _NTdirRec{	/* WINNT  directory record			*/
	long	NTattribute;		/* File attributes				*/
	byte	NTcreatTime[8];		/* File creation date/time		*/
	byte	NTaccesTime[8];		/* Last file access date/time	*/
	byte	NTtime[8];
	long	NTfSizeHigh;
	long	NTfSize;			/* File size (bytes)			*/	
	long	NTreserved[2];
	byte	NTfname[260];		/* File name					*/
	byte	NTAltfname[14];		/* File alternate name			*/
} NTdirRec;

#define DOS_FILE_CREAT	0x3C	/* DOS create/open file command */
#define CR_NORM			0x00
#define CR_RO			0x01	/* Read Only file create access code */
#define CR_HID			0x02	/* Hidden file attribute */
#define CR_SYS			0x04	/* System file attribute */
#define CR_ARC			0x20	/* Archive file attribute */

#define DOS_FILE_OPEN	0x3D	/* DOS open file command */
/* Open attributes */
#define OP_READ_ACCESS	0x00	/* Read Only file open access code */
#define OP_WRITE_ACCESS	0x01	/* Write Only file open access code */
#define OP_RW_ACCESS	0x02	/* Read/Write file open access code */

#define RELSTART		0x00	/* Seek relative to start of file */
#define RELCURRENT		0x01	/* Seek relative to current file position */
#define RELEND			0x02	/* Seek relative to end of file */

#define DOS_SET_DTA		0x1A	/* DOS set Disk Transfer Address command */
#define DOS_FILE_CLOSE	0x3E	/* DOS close file command */
#define DOS_FILE_READ	0x3F	/* DOS read file command */
#define DOS_FILE_WRITE	0x40	/* DOS write file command */
#define DOS_FILE_DELETE	0x41	/* DOS delete file command */
#define DOS_LSEEK		0x42	/* DOS move pointer command */
#define DOS_FILE_ATTR	0x43	/* DOS change file attributes command */
#define DOS_FIND_FIRST_MATCH 0x4E /* DOS find first matching file command */
#define DOS_FIND_NEXT_MATCH 0x4F /* DOS find next matching file command */
#define DOS_FILE_RENAME	0x56	/* DOS file rename command */
#define maxNameSize		80		/* DOS Max path/filename.ext size (chars) */


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -