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.

95 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1985 - 1999, Microsoft Corporation
  3. Module Name:
  4. eudc.h
  5. Abstract:
  6. Author:
  7. KazuM Apr.19.1996
  8. Revision History:
  9. --*/
  10. typedef struct _EUDC_INFORMATION {
  11. BOOL LocalVDMEudcMode;
  12. BOOL LocalKeisenEudcMode;
  13. HDC hDCLocalEudc; // Double colored DBCS hDC
  14. HBITMAP hBmpLocalEudc;
  15. PVOID EudcFontCacheInformation; // Same as PFONT_CACHE_INFORMATION
  16. COORD LocalEudcSize;
  17. INT EudcRangeSize;
  18. #define EUDC_RANGE_SIZE 16
  19. WCHAR EudcRange[EUDC_RANGE_SIZE];
  20. } EUDC_INFORMATION, *PEUDC_INFORMATION;
  21. NTSTATUS
  22. CreateEUDC(
  23. PCONSOLE_INFORMATION Console
  24. );
  25. VOID
  26. DeleteEUDC(
  27. PCONSOLE_INFORMATION Console
  28. );
  29. NTSTATUS
  30. RegisterLocalEUDC(
  31. IN PCONSOLE_INFORMATION Console,
  32. IN WCHAR wChar,
  33. IN COORD FontSize,
  34. IN PCHAR FontFace
  35. );
  36. VOID
  37. FreeLocalEUDC(
  38. IN PCONSOLE_INFORMATION Console
  39. );
  40. VOID
  41. GetFitLocalEUDCFont(
  42. IN PCONSOLE_INFORMATION Console,
  43. IN WCHAR wChar
  44. );
  45. BOOL
  46. IsEudcRange(
  47. IN PCONSOLE_INFORMATION Console,
  48. IN WCHAR ch
  49. );
  50. BOOL
  51. CheckEudcRangeInString(
  52. IN PCONSOLE_INFORMATION Console,
  53. IN PWCHAR string,
  54. IN SHORT len,
  55. OUT SHORT *find_pos
  56. );
  57. INT
  58. GetSystemEUDCRangeW(
  59. WORD *pwEUDCCharTable,
  60. UINT cjSize
  61. );
  62. WORD
  63. ConvertStringToHex(
  64. LPWSTR lpch,
  65. LPWSTR *endptr
  66. );
  67. WORD
  68. ConvertStringToDec(
  69. LPWSTR lpch,
  70. LPWSTR *endptr
  71. );