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.

136 lines
2.6 KiB

  1. #ifndef __LPK__
  2. #define __LPK__
  3. //// Language pack exported APIs
  4. //
  5. // These entry points are linked dynamically through LoadLibrary and
  6. // GetProcAddress from GDI and USER at application statup.
  7. //
  8. //
  9. // Copyright(c) 1997 - 1999. Microsoft Corporation.
  10. //
  11. extern "C" {
  12. // For USER32
  13. LONG WINAPI LpkTabbedTextOut(
  14. HDC,
  15. int,
  16. int,
  17. LPCWSTR,
  18. int,
  19. int,
  20. LPINT,
  21. int,
  22. BOOL,
  23. int,
  24. int,
  25. int);
  26. void WINAPI LpkPSMTextOut(
  27. HDC,
  28. int,
  29. int,
  30. LPCWSTR,
  31. int,
  32. DWORD);
  33. // For GDI32
  34. BOOL WINAPI LpkExtTextOut(
  35. HDC hdc,
  36. int x,
  37. int y,
  38. UINT uOptions,
  39. const RECT *prc,
  40. PCWSTR pStr,
  41. UINT cbCount,
  42. const int *pDx,
  43. int iCharset);
  44. BOOL WINAPI LpkGetTextExtentExPoint(
  45. HDC,
  46. LPCWSTR,
  47. int,
  48. int,
  49. LPINT,
  50. LPINT,
  51. LPSIZE,
  52. FLONG,
  53. int);
  54. DWORD WINAPI LpkGetCharacterPlacement(
  55. HDC,
  56. LPCWSTR,
  57. int,
  58. int,
  59. LPGCP_RESULTSW,
  60. DWORD,
  61. int);
  62. BOOL WINAPI LpkUseGDIWidthCache(
  63. HDC hDC,
  64. LPCSTR psz,
  65. int count,
  66. long fl,
  67. BOOL fUnicode) ;
  68. }
  69. //// User callable GAD functions
  70. //
  71. //// ScriptLogicalWidth - return width of representation of logical character i
  72. //
  73. // Requires script analysis with piOutLA field prepared.
  74. //
  75. // __inline INT ScriptLogicalWidth(SCRIPTANALYSIS *psa, INT i) {
  76. // return psa->piOutLA[i] - (i==0 ? 0 : psa->piOutLA[i-1]);
  77. // }
  78. //// CursorX - Return cursor position following logical character i
  79. //
  80. // Requires script analysis with piOutLA, piOutLO and pLogAttr fields prepared.
  81. //
  82. // __inline int ScriptCursorX(PSCRIPTANALYSIS psa, int i) {
  83. // if (i >= psa->nInChars) {
  84. // return psa->size.cx;
  85. // } else {
  86. // return psa->piOutLO[i] + (psa->pLogAttr[i].fRTL ? 0 : ScriptLogicalWidth(psa, i));
  87. // }
  88. // }
  89. //// LPK_NLS
  90. //
  91. //BOOL DispatchNLSThreadInfo( HKEY *phCPIntlInfo , HANDLE *phNLSWaitThread ) ;
  92. //DWORD WINAPI NotifyIntlNLSChange( PVOID pvParam ) ;
  93. //BOOL LpkReflectNLSChange( void ) ;
  94. //
  95. //BOOL InitNLS( void ) ;
  96. //BOOL ReadNumericNLSInfo( INT *piNativeDigits , INT *piSubstDigit ) ;
  97. //void SetLocaleDerivedGlobals( void ) ;
  98. //
  99. //BOOL NLSCleanup( void ) ;
  100. #endif // __LPK__