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.

62 lines
1.1 KiB

  1. #if !defined( _CHAIN_IO_ )
  2. #define _CHAIN_IO_
  3. #include "io.hxx"
  4. #include "hmem.hxx"
  5. #include "cluster.hxx"
  6. DECLARE_CLASS( CHAIN_IO );
  7. class CHAIN_IO : public IO_OBJECT {
  8. public:
  9. NONVIRTUAL
  10. CHAIN_IO(
  11. ) { _drive = NULL; };
  12. VIRTUAL
  13. BOOLEAN
  14. Setup(
  15. IN PMEM Mem,
  16. IN PLOG_IO_DP_DRIVE Drive,
  17. IN HANDLE Application,
  18. IN HWND WindowHandle,
  19. OUT PBOOLEAN Error
  20. );
  21. VIRTUAL
  22. BOOLEAN
  23. Read(
  24. OUT PULONG pError
  25. );
  26. VIRTUAL
  27. BOOLEAN
  28. Write(
  29. );
  30. VIRTUAL
  31. PVOID
  32. GetBuf(
  33. OUT PULONG Size DEFAULT NULL
  34. );
  35. VIRTUAL
  36. PTCHAR
  37. GetHeaderText(
  38. );
  39. private:
  40. PLOG_IO_DP_DRIVE _drive;
  41. CLUSTER_CHAIN _cluster;
  42. PVOID _buffer;
  43. ULONG _buffer_size;
  44. TCHAR _header_text[64];
  45. };
  46. #endif