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.

145 lines
4.4 KiB

  1. /****************************************************************************/
  2. /* autdata.h */
  3. /* */
  4. /* UT global data */
  5. /* */
  6. /* Copyright(C) Microsoft Corporation 1997-1999 */
  7. /****************************************************************************/
  8. #ifndef _H_AUTDATA
  9. #define _H_AUTDATA
  10. #include <adcgdata.h>
  11. #include <autint.h>
  12. /****************************************************************************/
  13. /* */
  14. /* External DLL */
  15. /* *
  16. /****************************************************************************/
  17. typedef union _FUNCTIONPORT {
  18. #ifndef OS_WINCE
  19. LPCSTR pszFunctionName;
  20. #else
  21. LPCTSTR pszFunctionName;
  22. #endif
  23. FARPROC lpfnFunction;
  24. } FUNCTIONPORT, *PFUNCTIONPORT;
  25. #if defined(OS_WIN32)
  26. /****************************************************************************/
  27. /* IMM32 DLL */
  28. /****************************************************************************/
  29. typedef union _IMM32_FUNCTION {
  30. FUNCTIONPORT rgFunctionPort[2];
  31. struct {
  32. HIMC (CALLBACK* _ImmAssociateContext)(
  33. IN HWND hWnd,
  34. IN HIMC hImc
  35. );
  36. BOOL (CALLBACK* _ImmGetIMEFileName)(
  37. IN HKL hkl,
  38. OUT LPTSTR lpszFileName,
  39. OUT UINT uBufferLength
  40. );
  41. };
  42. } IMM32_FUNCTION, *PIMM32_FUNCTION;
  43. typedef struct _IMM32DLL {
  44. HINSTANCE hInst;
  45. IMM32_FUNCTION func;
  46. } IMM32DLL, *PIMM32DLL;
  47. #define lpfnImmAssociateContext UT.Imm32Dll.func._ImmAssociateContext
  48. #define lpfnImmGetIMEFileName UT.Imm32Dll.func._ImmGetIMEFileName
  49. #endif // OS_WIN32
  50. #if !defined(OS_WINCE)
  51. /****************************************************************************/
  52. /* WINNLS DLL */
  53. /****************************************************************************/
  54. #if !defined(OS_WINCE)
  55. #include <winnls32.h>
  56. #endif
  57. typedef union _WINNLS_FUNCTION {
  58. FUNCTIONPORT rgFunctionPort[2];
  59. struct {
  60. BOOL (CALLBACK* _WINNLSEnableIME)(
  61. IN HANDLE hWnd,
  62. IN BOOL fEnable
  63. );
  64. BOOL (CALLBACK* _IMPGetIME)(
  65. IN HWND hWnd,
  66. OUT LPIMEPRO lpImePro
  67. );
  68. };
  69. } WINNLS_FUNCTION, *PWINNLS_FUNCTION;
  70. typedef struct _WINNLSDLL {
  71. HINSTANCE hInst;
  72. WINNLS_FUNCTION func;
  73. } WINNLSDLL, *PWINNLSDLL;
  74. #define lpfnWINNLSEnableIME UT.WinnlsDll.func._WINNLSEnableIME
  75. #define lpfnIMPGetIME UT.WinnlsDll.func._IMPGetIME
  76. #endif // !defined(OS_WINCE)
  77. #if defined(OS_WINNT)
  78. /****************************************************************************/
  79. /* F3AHVOAS DLL */
  80. /****************************************************************************/
  81. typedef union _F3AHVOASYS_FUNCTION {
  82. FUNCTIONPORT rgFunctionPort[1];
  83. struct {
  84. VOID (CALLBACK* _FujitsuOyayubiControl)(
  85. IN DWORD dwImeOpen,
  86. IN DWORD dwImeConversionMode
  87. );
  88. };
  89. } F3AHVOASYS_FUNCTION, *PF3AHVOASYS_FUNCTION;
  90. typedef struct _F3AHVOASYSDLL {
  91. HINSTANCE hInst;
  92. F3AHVOASYS_FUNCTION func;
  93. } F3AHVOASYSDLL, *PF3AHVOASYSDLL;
  94. #define lpfnFujitsuOyayubiControl UT.F3AHVOasysDll.func._FujitsuOyayubiControl
  95. #endif // OS_WINNT
  96. /****************************************************************************/
  97. /* Prototypes */
  98. /****************************************************************************/
  99. HINSTANCE
  100. LoadExternalDll(
  101. LPCTSTR pszLibraryName,
  102. PFUNCTIONPORT rgFunction,
  103. DWORD dwItem
  104. );
  105. VOID
  106. InitExternalDll(
  107. VOID
  108. );
  109. #endif /* _H_AUTDATA */