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.

47 lines
878 B

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 1998 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * Driver-specific data
  8. *
  9. * Abstract:
  10. *
  11. * This module gives drivers a way to attach private data to GDI+
  12. * objects.
  13. *
  14. * Created:
  15. *
  16. * 3/18/1999 agodfrey
  17. *
  18. \**************************************************************************/
  19. #ifndef _DPDRIVERDATA_HPP
  20. #define _DPDRIVERDATA_HPP
  21. class DpDriverData
  22. {
  23. public:
  24. virtual ~DpDriverData()=0;
  25. private:
  26. DpDriverData *next;
  27. DpDriver *owner;
  28. friend class DpDriverDataList;
  29. };
  30. class DpDriverDataList
  31. {
  32. public:
  33. DpDriverDataList() { head = NULL; }
  34. ~DpDriverDataList();
  35. void Add(DpDriverData *dd, DpDriver *owner);
  36. DpDriverData *GetData(DpDriver *owner);
  37. private:
  38. DpDriverData *head;
  39. };
  40. #endif