Leaked source code of windows server 2003
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.

98 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. scraper.h
  5. Abstract:
  6. Class for defining base scraper behavior.
  7. Author:
  8. Brian Guarraci (briangu) 2001.
  9. Revision History:
  10. --*/
  11. #ifndef __SCRAPER__H__
  12. #define __SCRAPER__H__
  13. #include <iohandler.h>
  14. class CScraper {
  15. protected:
  16. CScraper();
  17. CIoHandler *m_IoHandler;
  18. //
  19. // max dimensions of the scraping window
  20. //
  21. WORD m_wMaxCols;
  22. WORD m_wMaxRows;
  23. //
  24. // current dimensions of the scraping window
  25. //
  26. // NOTE: may be less than max if the scraping
  27. // window has a max size < ours
  28. //
  29. WORD m_wCols;
  30. WORD m_wRows;
  31. //
  32. //
  33. //
  34. HANDLE m_hConBufIn;
  35. HANDLE m_hConBufOut;
  36. VOID
  37. SetConOut(
  38. HANDLE
  39. );
  40. VOID
  41. SetConIn(
  42. HANDLE
  43. );
  44. public:
  45. virtual BOOL
  46. Start(
  47. VOID
  48. ) = 0;
  49. virtual BOOL
  50. Write(
  51. VOID
  52. ) = 0;
  53. virtual BOOL
  54. Read(
  55. VOID
  56. ) = 0;
  57. virtual BOOL
  58. DisplayFullScreen(
  59. VOID
  60. ) = 0;
  61. CScraper(
  62. CIoHandler *IoHandler,
  63. WORD wCols,
  64. WORD wRows
  65. );
  66. virtual ~CScraper();
  67. };
  68. #endif __SCRAPER__H__