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

📄 xstructs.h

📁 GNU FreeDOS兼容MS DOS很好的东东.
💻 H
字号:
/****************************************************************//*                                                              *//*                        xstructs.h                            *//*                                                              *//*                Extended DOS 7.0+ structures                  *//*                                                              *//****************************************************************/#ifdef MAIN#ifdef VERSION_STRINGSstatic BYTE *XStructs_hRcsId =    "$Id: xstructs.h,v 1.3 2002/01/23 22:29:41 bartoldeman Exp $";#endif#endifstruct xdpbdata {  UWORD xdd_dpbsize;  struct dpb xdd_dpb;};struct xfreespace {  UWORD xfs_datasize;           /* size of this structure                */  union {    UWORD requested;            /* requested structure version           */    UWORD actual;               /* actual structure version              */  } xfs_version;  ULONG xfs_clussize;           /* number of sectors per cluster         */  ULONG xfs_secsize;            /* number of bytes per sector            */  ULONG xfs_freeclusters;       /* number of available clusters          */  ULONG xfs_totalclusters;      /* total number of clusters on the drive */  ULONG xfs_freesectors;        /* number of physical sectors available  */  ULONG xfs_totalsectors;       /* total number of physical sectors      */  ULONG xfs_freeunits;          /* number of available allocation units  */  ULONG xfs_totalunits;         /* total allocation units                */  UBYTE xfs_reserved[8];};struct xdpbforformat {  UWORD xdff_datasize;          /* size of this structure                */  union {    UWORD requested;            /* requested structure version           */    UWORD actual;               /* actual structure version              */  } xdff_version;  UDWORD xdff_function;         /* function number:                                   00h invalidate DPB counts                                   01h rebuild DPB from BPB                                   02h force media change                                   03h get/set active FAT number and mirroring                                   04h get/set root directory cluster number                                 */  union {    struct {      DWORD nfreeclst;          /* # free clusters                                   (-1 - unknown, 0 - don't change) */      DWORD cluster;            /* cluster # of first free                                             (-1 - unknown, 0 - don't change) */      UDWORD reserved[2];    } setdpbcounts;    struct {      UDWORD unknown;      bpb FAR *bpbp;      UDWORD reserved[2];    } rebuilddpb;    struct {      DWORD newmirroring;       /* new active FAT/mirroring state, or -1 to get                                   bits 3-0: the 0-based FAT number of the active FAT                                   bits 6-4: reserved (0)                                   bit 7: do not mirror active FAT to inactive FATs                                 */      DWORD oldmirroring;       /* previous active FAT/mirroring state (as above) */      UDWORD reserved[2];    } setmirroring;    struct {      DWORD newrootclst;        /* set new root directory cluster, -1 - get current */      DWORD oldrootclst;        /* get previous root directory cluster */      UDWORD reserved[2];    } setroot;  } xdff_f;};COUNT DosGetExtFree(BYTE FAR * DriveString, struct xfreespace FAR * xfsp);

⌨️ 快捷键说明

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