Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.3 KiB

  1. /* fcb.h - structure of a 1.0 fcb */
  2. struct EFCBType {
  3. char eflg; /* 00 must be 0xFF for extended FCB */
  4. char pad[5]; /* 01 padding */
  5. char attr; /* 06 enabling attribute */
  6. char drv; /* 07 drive code */
  7. char nam[8]; /* 08 file name */
  8. char ext[3]; /* 10 file name extension */
  9. int cb; /* 13 current block number */
  10. int lrs; /* 15 logical record size */
  11. long lfs; /* 17 logical file size */
  12. unsigned dat; /* 1B create/change date */
  13. unsigned tim; /* 1D create/change time */
  14. char sys[8]; /* 1F reserved */
  15. unsigned char cr; /* 27 current record number */
  16. long rec; /* 28 random record number */
  17. };
  18. struct FCB {
  19. char drv; /* 00 drive code */
  20. char nam[8]; /* 01 file name */
  21. char ext[3]; /* 09 file name extension */
  22. int cb; /* 0C current block number */
  23. int lrs; /* 0E logical record size */
  24. long lfs; /* 10 logical file size */
  25. unsigned dat; /* 14 create/change date */
  26. unsigned tim; /* 16 create/change time */
  27. char sys[8]; /* 18 reserved */
  28. unsigned char cr; /* 20 current record number */
  29. long rec; /* 21 random record number */
  30. };
  31. #define FCBSIZ sizeof(struct FCB)