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.

46 lines
1.3 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: dbrshobj.hxx
  3. *
  4. * This contains the prototypes for Device Brush Object Class. The class
  5. * manages the driver's realization of a brush.
  6. *
  7. * Created: 14-May-1991 22:02:16
  8. * Author: Patrick Haluptzok patrickh
  9. *
  10. * Copyright (c) 1990-1999 Microsoft Corporation
  11. \**************************************************************************/
  12. #ifndef _DBRSHFILE
  13. #define _DBRSHFILE 1
  14. /*********************************Class************************************\
  15. * DBRUSH
  16. *
  17. * This structure keeps track of RAM allocated for a driver's realization
  18. * of a brush.
  19. *
  20. * History:
  21. * 19-Oct-1993 -by- Michael Abrash [mikeab]
  22. * Completely rewrote it.
  23. \**************************************************************************/
  24. class DBRUSH : public RBRUSH
  25. {
  26. public:
  27. BYTE aj[4]; // The driver's realized brush.
  28. // Note: [4] so we don't get an extra dword in this
  29. // structure when we do sizeof to allocate
  30. };
  31. typedef DBRUSH *PDBRUSH;
  32. // Distance from the start of a DBRUSH to the start of the realization
  33. #define MAGIC_DBR_DIFF (offsetof(DBRUSH, aj))
  34. // Returns the start of the DBRUSH given the start of the realization
  35. #define DBRUSHSTART(pv) ((PVOID)(((PBYTE) pv) - MAGIC_DBR_DIFF))
  36. #endif
  37.