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.

60 lines
1.0 KiB

  1. #if !defined( _SECTOR_IO_ )
  2. #define _SECTOR_IO_
  3. #include "io.hxx"
  4. #include "hmem.hxx"
  5. #include "secrun.hxx"
  6. DECLARE_CLASS( SECTOR_IO );
  7. class SECTOR_IO : public IO_OBJECT {
  8. public:
  9. NONVIRTUAL
  10. SECTOR_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. SECRUN _secrun;
  42. TCHAR _header_text[64];
  43. };
  44. #endif