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.

54 lines
1.5 KiB

  1. /****************************************************************************/
  2. // abaapi.h
  3. //
  4. // RDP Bounds Accumulator API header.
  5. //
  6. // Copyright (C) 1997-2000 Microsoft Corporation
  7. /****************************************************************************/
  8. #ifndef _H_ABAAPI
  9. #define _H_ABAAPI
  10. #define BA_INVALID_RECT_INDEX ((unsigned)-1)
  11. // We allocate space for one more rectangle than total number we accumulate
  12. // so we have a "work" rectangle.
  13. #define BA_MAX_ACCUMULATED_RECTS 20
  14. #define BA_TOTAL_NUM_RECTS (BA_MAX_ACCUMULATED_RECTS + 1)
  15. /****************************************************************************/
  16. // BA_RECT_INFO
  17. //
  18. // Information about an accumulated rectangle.
  19. /****************************************************************************/
  20. typedef struct
  21. {
  22. unsigned iNext;
  23. unsigned iPrev;
  24. RECTL coord;
  25. UINT32 area;
  26. BOOL inUse;
  27. } BA_RECT_INFO, *PBA_RECT_INFO;
  28. /****************************************************************************/
  29. // BA_SHARED_DATA
  30. //
  31. // BA data shared between DD and WD.
  32. /****************************************************************************/
  33. typedef struct
  34. {
  35. unsigned firstRect;
  36. unsigned rectsUsed;
  37. UINT32 totalArea;
  38. unsigned firstFreeRect;
  39. // "+ 1" added below to stop retail builds crashing as a result of #123
  40. // and its relations. Remove when we fix the bug properly.
  41. BA_RECT_INFO bounds[BA_TOTAL_NUM_RECTS + 1];
  42. } BA_SHARED_DATA, *PBA_SHARED_DATA;
  43. #endif /* _H_ABAAPI */