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.

51 lines
1.3 KiB

  1. typedef char int8; /* signed byte: -128..127 */
  2. typedef unsigned char uint8; /* unsigned byte: 0..255 */
  3. typedef unsigned short uint16; /* unsigned integer: 0..65535 */
  4. typedef short int16; /* signed integer: -32768..32767 */
  5. typedef unsigned long uint32; /* unsigned long integer: 0..2^32-1*/
  6. typedef long int32; /* signed long integer: -2^31..2^31*/
  7. #define FIRST (uint16)1
  8. #define LAST (uint16)2
  9. #define ALLONE (uint16)0xFFFF
  10. #define SECTOR0 0
  11. #define SECTOR1 4
  12. #define SECTOR2 7
  13. #define SECTOR3 9
  14. #define SECTOR4 11
  15. #define SECTOR5 13
  16. #define SECTOR6 12
  17. #define SECTOR7 8
  18. struct DRAWINFO
  19. {
  20. uint16 FAR *bytePosition;
  21. int nextY;
  22. uint16 bitPosition;
  23. };
  24. typedef struct DRAWINFO drawInfoStructType;
  25. static void Sector07(RP_SLICE_DESC FAR* line, LPBITMAP lpbm);
  26. static void Sector16(RP_SLICE_DESC FAR* line, LPBITMAP lpbm);
  27. static void Sector25(RP_SLICE_DESC FAR* line, LPBITMAP lpbm);
  28. static void Sector34(RP_SLICE_DESC FAR* line, LPBITMAP lpbm);
  29. void (*sector_function[14])(RP_SLICE_DESC FAR*, LPBITMAP lpbm) =
  30. {
  31. Sector07,
  32. 0,
  33. 0,
  34. 0,
  35. Sector16,
  36. 0,
  37. 0,
  38. Sector25,
  39. Sector07,
  40. Sector34,
  41. 0,
  42. Sector34,
  43. Sector16,
  44. Sector25
  45. };