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.

32 lines
1.1 KiB

  1. /****************************************
  2. * *
  3. * File parameter block structure. *
  4. * *
  5. ****************************************/
  6. typedef struct FileParmBlock
  7. {
  8. GHANDLE hStruct; // This structure's handle. MUST BE 1ST FIELD!!!
  9. INTERRUPT_FUNC lpfnfInterCb;
  10. // A user-supplied function that's called
  11. // every time an I/O function makes a
  12. // physical I/O. This field exists to allow
  13. // the user to interrupt an involved process
  14. // by forcing the I/O calls to return error.
  15. LPV lpvInterCbParms;
  16. // A user-supplied pointer that's passed along
  17. // to "lpfnfInterCb".
  18. union {
  19. HFS hfs; // handle to file system
  20. HF hf; // handle to sub-file
  21. #ifdef _WIN32
  22. HANDLE hFile; // handle to regular DOS file
  23. #else
  24. HFILE hFile;
  25. #endif
  26. } fs;
  27. HANDLE hBuf; // Handle to DOS I/O buffer
  28. BYTE fFileType; // Flags which tells what kind of file is that
  29. BYTE ioMode; // File I/O mode (READ, READ_WRITE, OPENED_HFS)
  30. CRITICAL_SECTION cs; // @field When doing subfile seek/read combos, ensure OK
  31. } FPB, FAR * LPFPB;