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.

107 lines
2.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992-2000.
  5. //
  6. // File: msuimw32.idl
  7. //
  8. // Contents: Win32 Layer interface definitions
  9. //
  10. //
  11. //--------------------------------------------------------------------------
  12. cpp_quote("//=--------------------------------------------------------------------------=")
  13. cpp_quote("// msuimw32.h")
  14. cpp_quote("//=--------------------------------------------------------------------------=")
  15. cpp_quote("// (C) Copyright 1995-2000 Microsoft Corporation. All Rights Reserved.")
  16. cpp_quote("//")
  17. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  18. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  19. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  20. cpp_quote("// PARTICULAR PURPOSE.")
  21. cpp_quote("//=--------------------------------------------------------------------------=")
  22. cpp_quote("")
  23. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  24. cpp_quote("")
  25. cpp_quote("//--------------------------------------------------------------------------")
  26. cpp_quote("// Win32 Layer Semi Private Interfaces.")
  27. cpp_quote("")
  28. #ifndef DO_NO_IMPORTS
  29. import "unknwn.idl";
  30. import "msctf.idl";
  31. import "aimmp.idl";
  32. #endif
  33. //
  34. // ACTIVE IME library defines below
  35. //
  36. // {B2AA53DF-21AB-40f2-B386-ED048CFC1C9D}
  37. // static const GUID <<name>> =
  38. // { 0xB2AA53DF, 0x21AB, 0x40f2, { 0xB3, 0x86, 0xED, 0x04, 0x8C, 0xFC, 0x1C, 0x9D } };
  39. cpp_quote("#if 0")
  40. cpp_quote("#endif")
  41. [
  42. local,
  43. object,
  44. uuid(B2AA53DF-21AB-40f2-B386-ED048CFC1C9D),
  45. pointer_default(unique)
  46. ]
  47. interface IAImeProfile : IUnknown
  48. {
  49. HRESULT Activate(void);
  50. HRESULT Deactivate(void);
  51. HRESULT ChangeCurrentKeyboardLayout(HKL hKL);
  52. HRESULT GetLangId(LANGID* plid);
  53. HRESULT GetCodePageA(UINT* puCodePage);
  54. HRESULT GetKeyboardLayout(HKL* phkl);
  55. HRESULT IsIME(HKL hKL);
  56. HRESULT GetActiveLanguageProfile([in] HKL hKL,
  57. [in] GUID catid,
  58. [out] TF_LANGUAGEPROFILE* pLanguageProfile);
  59. }
  60. //
  61. // ACTIVE IME context library
  62. //
  63. // {5F5B4ACB-D55D-492c-B596-F6390E1AD798}
  64. // static const GUID <<name>> =
  65. // { 0x5F5B4ACB, 0xD55D, 0x492c, { 0xB5, 0x96, 0xF6, 0x39, 0x0E, 0x1A, 0xD7, 0x98 } };
  66. cpp_quote("#if 0")
  67. cpp_quote("#endif")
  68. [
  69. local,
  70. object,
  71. uuid(5F5B4ACB-D55D-492c-B596-F6390E1AD798),
  72. pointer_default(unique)
  73. ]
  74. interface IAImeContext : IUnknown
  75. {
  76. HRESULT CreateAImeContext(HIMC hIMC, IActiveIME_Private* pActiveIME);
  77. HRESULT DestroyAImeContext(HIMC hIMC);
  78. HRESULT UpdateAImeContext(HIMC hIMC);
  79. // HRESULT AssociateFocus(HIMC hIMC, BOOL fActive);
  80. HRESULT MapAttributes(HIMC hIMC);
  81. HRESULT GetGuidAtom(HIMC hIMC, BYTE bAttr, TfGuidAtom* pGuidAtom);
  82. }