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.

61 lines
1.2 KiB

  1. #if !defined( _PARTITION_TABLE_EDIT_ )
  2. #define _PARTITION_TABLE_EDIT_
  3. #include "edit.hxx"
  4. #include "vscroll.hxx"
  5. typedef struct _PARTITION_TABLE_ENTRY {
  6. UCHAR BootIndicator;
  7. UCHAR BeginningHead;
  8. UCHAR BeginningSector;
  9. UCHAR BeginningCylinder;
  10. UCHAR SystemID;
  11. UCHAR EndingHead;
  12. UCHAR EndingSector;
  13. UCHAR EndingCylinder;
  14. ULONG StartingSector;
  15. ULONG Sectors;
  16. } PARTITION_TABLE_ENTRY, *PPARTITION_TABLE_ENTRY;
  17. DECLARE_CLASS( PARTITION_TABLE_EDIT );
  18. class PARTITION_TABLE_EDIT : public VERTICAL_TEXT_SCROLL {
  19. public:
  20. VIRTUAL
  21. BOOLEAN
  22. Initialize(
  23. IN HWND WindowHandle,
  24. IN INT ClientHeight,
  25. IN INT ClientWidth,
  26. IN PLOG_IO_DP_DRIVE Drive
  27. );
  28. VIRTUAL
  29. VOID
  30. SetBuf(
  31. IN HWND WindowHandle,
  32. IN OUT PVOID Buffer,
  33. IN ULONG Size DEFAULT 0
  34. );
  35. VIRTUAL
  36. VOID
  37. Paint(
  38. IN HDC DeviceContext,
  39. IN RECT InvalidRect,
  40. IN HWND WindowHandle
  41. );
  42. private:
  43. PVOID _buffer;
  44. ULONG _size;
  45. };
  46. #endif