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.

55 lines
2.0 KiB

  1. /*---------------------------------------------------------------------------
  2. * Xlib.h -- Common definitions. Windows.h must be included first.
  3. *---------------------------------------------------------------------------
  4. */
  5. #define LINT_ARGS
  6. #define HNULL ((HANDLE) 0)
  7. /* Miscellaneous */
  8. #define cbFindMax 1024
  9. /* Graphics */
  10. #define bhlsMax ((BYTE) 240) /* Max of H/L/S */
  11. #define brgbMax ((BYTE) 255) /* Max of R/G/B */
  12. #define bHueNil (bhlsMax*2/3) /* This value of Hue is undefined if Sat==0 */
  13. #define HLS(h, l, s) \
  14. ((DWORD)(((BYTE)(h)|((WORD)(l)<<8))|(((DWORD)(BYTE)(s))<<16)))
  15. #define GetHValue(hls) ((BYTE)(hls))
  16. #define GetLValue(hls) ((BYTE)(((WORD)(hls)) >> 8))
  17. #define GetSValue(hls) ((BYTE)((hls)>>16))
  18. #define cwPointSizes 13
  19. typedef struct tagCF
  20. {
  21. char cfFaceName[LF_FACESIZE];
  22. int cfPointSize;
  23. COLORREF cfColor; /* Explicit RGB value... */
  24. unsigned fBold: 1;
  25. unsigned fItalic: 1;
  26. unsigned fStrikeOut: 1;
  27. unsigned fUnderLine: 1;
  28. unsigned fExtra: 12;
  29. }
  30. CHARFORMAT;
  31. typedef CHARFORMAT * PCHARFORMAT;
  32. typedef CHARFORMAT FAR * LPCHARFORMAT;
  33. HBITMAP FAR PASCAL LoadAlterBitmap(int, DWORD, DWORD);
  34. DWORD FAR PASCAL RgbFromHls(BYTE, BYTE, BYTE);
  35. DWORD FAR PASCAL HlsFromRgb(BYTE, BYTE, BYTE);
  36. BOOL FAR PASCAL GetColorChoice(HWND, DWORD FAR *, DWORD FAR *, FARPROC);
  37. BOOL FAR PASCAL GetCharFormat(HWND, LPCHARFORMAT, FARPROC);
  38. /* Memory */
  39. void FAR PASCAL StripSpace(LPSTR);
  40. HANDLE FAR PASCAL GlobalCopy(HANDLE);
  41. HANDLE FAR PASCAL GlobalDelete(HANDLE, LONG, LONG);
  42. HANDLE FAR PASCAL GlobalInsert(HANDLE, LONG, LONG, BOOL, BYTE);
  43. HANDLE FAR PASCAL LocalCopy(HANDLE);
  44. HANDLE FAR PASCAL LocalDelete(HANDLE, WORD, WORD);
  45. HANDLE FAR PASCAL LocalInsert(HANDLE, WORD, WORD, BOOL, BYTE);