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
97 lines
2.8 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992-2000.
|
|
//
|
|
// File: ctflbui.idl
|
|
//
|
|
// Contents: ISoftKbd declarations.
|
|
//
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
cpp_quote("//=--------------------------------------------------------------------------=")
|
|
cpp_quote("// ctflbui.h")
|
|
cpp_quote("")
|
|
cpp_quote("")
|
|
cpp_quote("// Langbar AddIN declarations.")
|
|
cpp_quote("")
|
|
cpp_quote("//=--------------------------------------------------------------------------=")
|
|
cpp_quote("// (C) Copyright 1995-2001 Microsoft Corporation. All Rights Reserved.")
|
|
cpp_quote("//")
|
|
cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
|
|
cpp_quote("// ANY KIND, EITHER EXPRESSED OR TFPLIED, INCLUDING BUT NOT LIMITED TO")
|
|
cpp_quote("// THE TFPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
|
|
cpp_quote("// PARTICULAR PURPOSE.")
|
|
cpp_quote("//=--------------------------------------------------------------------------=")
|
|
cpp_quote("")
|
|
|
|
cpp_quote("#ifndef CTFLBUI_DEFINED")
|
|
cpp_quote("#define CTFLBUI_DEFINED")
|
|
cpp_quote("")
|
|
cpp_quote("#include <windows.h>")
|
|
cpp_quote("")
|
|
cpp_quote("#ifdef __cplusplus")
|
|
cpp_quote("extern \"C\" {")
|
|
cpp_quote("#endif /* __cplusplus */")
|
|
cpp_quote("")
|
|
|
|
|
|
cpp_quote("#ifdef __cplusplus")
|
|
cpp_quote("}")
|
|
cpp_quote("#endif /* __cplusplus */")
|
|
|
|
|
|
import "oaidl.idl";
|
|
import "ocidl.idl";
|
|
import "msctf.idl";
|
|
|
|
|
|
//
|
|
// ITfLangBarAddIn
|
|
//
|
|
// Implemented by TIP.
|
|
//
|
|
[
|
|
object,
|
|
uuid(c9addac3-15cb-4957-b93c-db0873ff98bb),
|
|
pointer_default(unique)
|
|
]
|
|
interface ITfLangBarAddIn : IUnknown
|
|
{
|
|
HRESULT OnStart([out] CLSID *pclsid);
|
|
HRESULT OnUpdate([in] DWORD dwFlags);
|
|
HRESULT OnTerminate();
|
|
}
|
|
|
|
//
|
|
// MSCTF entry
|
|
//
|
|
cpp_quote("#define TF_RLBAI_LOCALMACHINE 0x0001")
|
|
cpp_quote("#define TF_RLBAI_CURRENTUSER 0x0002")
|
|
cpp_quote("#define TF_RLBAI_ENABLE 0x0004")
|
|
|
|
cpp_quote("HRESULT WINAPI TF_RegisterLangBarAddIn(REFGUID guidUISrv, const WCHAR *pszPath, DWORD dwFlags);")
|
|
cpp_quote("HRESULT WINAPI TF_UnregisterLangBarAddIn(REFGUID guidUISrv, DWORD dwFlags);")
|
|
cpp_quote("HRESULT WINAPI TF_ClearLangBarAddIns(REFCLSID rclsid);")
|
|
|
|
//
|
|
// LangBar AddIn entry
|
|
//
|
|
cpp_quote("HRESULT WINAPI CTFGetLangBarAddIn(ITfLangBarAddIn **ppAddIn);")
|
|
|
|
|
|
// =-------------------------------------------------------------------------=
|
|
//
|
|
// C L S I D / I I D D E F I N I T I O N
|
|
//
|
|
// =-------------------------------------------------------------------------=
|
|
|
|
cpp_quote("")
|
|
|
|
cpp_quote("DEFINE_GUID(IID_ITfLangBarAddIn, 0xc9addac3, 0x15cb, 0x4957, 0xb9, 0x3c, 0xdb, 0x08, 0x73, 0xff, 0x98, 0xbb);")
|
|
|
|
cpp_quote("")
|
|
|
|
|
|
cpp_quote("#endif // CTFLBUI_DEFINED")
|