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.

97 lines
2.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992-2000.
  5. //
  6. // File: ctflbui.idl
  7. //
  8. // Contents: ISoftKbd declarations.
  9. //
  10. //
  11. //--------------------------------------------------------------------------
  12. cpp_quote("//=--------------------------------------------------------------------------=")
  13. cpp_quote("// ctflbui.h")
  14. cpp_quote("")
  15. cpp_quote("")
  16. cpp_quote("// Langbar AddIN declarations.")
  17. cpp_quote("")
  18. cpp_quote("//=--------------------------------------------------------------------------=")
  19. cpp_quote("// (C) Copyright 1995-2001 Microsoft Corporation. All Rights Reserved.")
  20. cpp_quote("//")
  21. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  22. cpp_quote("// ANY KIND, EITHER EXPRESSED OR TFPLIED, INCLUDING BUT NOT LIMITED TO")
  23. cpp_quote("// THE TFPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  24. cpp_quote("// PARTICULAR PURPOSE.")
  25. cpp_quote("//=--------------------------------------------------------------------------=")
  26. cpp_quote("")
  27. cpp_quote("#ifndef CTFLBUI_DEFINED")
  28. cpp_quote("#define CTFLBUI_DEFINED")
  29. cpp_quote("")
  30. cpp_quote("#include <windows.h>")
  31. cpp_quote("")
  32. cpp_quote("#ifdef __cplusplus")
  33. cpp_quote("extern \"C\" {")
  34. cpp_quote("#endif /* __cplusplus */")
  35. cpp_quote("")
  36. cpp_quote("#ifdef __cplusplus")
  37. cpp_quote("}")
  38. cpp_quote("#endif /* __cplusplus */")
  39. import "oaidl.idl";
  40. import "ocidl.idl";
  41. import "msctf.idl";
  42. //
  43. // ITfLangBarAddIn
  44. //
  45. // Implemented by TIP.
  46. //
  47. [
  48. object,
  49. uuid(c9addac3-15cb-4957-b93c-db0873ff98bb),
  50. pointer_default(unique)
  51. ]
  52. interface ITfLangBarAddIn : IUnknown
  53. {
  54. HRESULT OnStart([out] CLSID *pclsid);
  55. HRESULT OnUpdate([in] DWORD dwFlags);
  56. HRESULT OnTerminate();
  57. }
  58. //
  59. // MSCTF entry
  60. //
  61. cpp_quote("#define TF_RLBAI_LOCALMACHINE 0x0001")
  62. cpp_quote("#define TF_RLBAI_CURRENTUSER 0x0002")
  63. cpp_quote("#define TF_RLBAI_ENABLE 0x0004")
  64. cpp_quote("HRESULT WINAPI TF_RegisterLangBarAddIn(REFGUID guidUISrv, const WCHAR *pszPath, DWORD dwFlags);")
  65. cpp_quote("HRESULT WINAPI TF_UnregisterLangBarAddIn(REFGUID guidUISrv, DWORD dwFlags);")
  66. cpp_quote("HRESULT WINAPI TF_ClearLangBarAddIns(REFCLSID rclsid);")
  67. //
  68. // LangBar AddIn entry
  69. //
  70. cpp_quote("HRESULT WINAPI CTFGetLangBarAddIn(ITfLangBarAddIn **ppAddIn);")
  71. // =-------------------------------------------------------------------------=
  72. //
  73. // C L S I D / I I D D E F I N I T I O N
  74. //
  75. // =-------------------------------------------------------------------------=
  76. cpp_quote("")
  77. cpp_quote("DEFINE_GUID(IID_ITfLangBarAddIn, 0xc9addac3, 0x15cb, 0x4957, 0xb9, 0x3c, 0xdb, 0x08, 0x73, 0xff, 0x98, 0xbb);")
  78. cpp_quote("")
  79. cpp_quote("#endif // CTFLBUI_DEFINED")