Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit msctf_TLB;
- // ************************************************************************ //
- // WARNING
- // -------
- // The types declared in this file were generated from data read from a
- // Type Library. If this type library is explicitly or indirectly (via
- // another type library referring to this type library) re-imported, or the
- // 'Refresh' command of the Type Library Editor activated while editing the
- // Type Library, the contents of this file will be regenerated and all
- // manual modifications will be lost.
- // ************************************************************************ //
- // $Rev: 45604 $
- // File generated on 7/13/2012 11:00:13 AM from Type Library described below.
- // ************************************************************************ //
- // Type Lib: msctf.tlb (1)
- // LIBID: {17D32760-6055-473B-8269-8E35F86948BC}
- // LCID: 409
- // Helpfile:
- // HelpString: MSCTF 1.0 Type Library
- // DepndLst:
- // (1) v2.0 stdole, (C:\Windows\SysWOW64\stdole2.tlb)
- // SYS_KIND: SYS_WIN32
- // Errors:
- // Hint: Symbol 'type' renamed to 'type_'
- // Cmdline:
- // tlibimp -p msctf.tlb
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- {$WARN SYMBOL_PLATFORM OFF}
- {$WRITEABLECONST ON}
- {$VARPROPSETTER ON}
- {$ALIGN 4}
- interface
- uses Winapi.Windows, System.Classes, System.Variants, System.Win.StdVCL, Vcl.Graphics, Winapi.ActiveX;
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used:
- // Type Libraries : LIBID_xxxx
- // CoClasses : CLASS_xxxx
- // DISPInterfaces : DIID_xxxx
- // Non-DISP interfaces: IID_xxxx
- // *********************************************************************//
- const
- // TypeLibrary Major and minor versions
- msctfMajorVersion = 1;
- msctfMinorVersion = 0;
- LIBID_msctf: TGUID = '{17D32760-6055-473B-8269-8E35F86948BC}';
- IID_ITfThreadMgrEventSink: TGUID = '{AA80E80E-2021-11D2-93E0-0060B067B86E}';
- IID_ITfDocumentMgr: TGUID = '{AA80E7F4-2021-11D2-93E0-0060B067B86E}';
- IID_ITfContext: TGUID = '{AA80E7FD-2021-11D2-93E0-0060B067B86E}';
- IID_ITfEditSession: TGUID = '{AA80E803-2021-11D2-93E0-0060B067B86E}';
- IID_ITfRange: TGUID = '{AA80E7FF-2021-11D2-93E0-0060B067B86E}';
- IID_IDataObject: TGUID = '{0000010E-0000-0000-C000-000000000046}';
- IID_IEnumFORMATETC: TGUID = '{00000103-0000-0000-C000-000000000046}';
- IID_IAdviseSink: TGUID = '{0000010F-0000-0000-C000-000000000046}';
- IID_IPersist: TGUID = '{0000010C-0000-0000-C000-000000000046}';
- IID_IPersistStream: TGUID = '{00000109-0000-0000-C000-000000000046}';
- IID_IMoniker: TGUID = '{0000000F-0000-0000-C000-000000000046}';
- IID_ISequentialStream: TGUID = '{0C733A30-2A1C-11CE-ADE5-00AA0044773D}';
- IID_IStream: TGUID = '{0000000C-0000-0000-C000-000000000046}';
- IID_IBindCtx: TGUID = '{0000000E-0000-0000-C000-000000000046}';
- IID_IRunningObjectTable: TGUID = '{00000010-0000-0000-C000-000000000046}';
- IID_IEnumMoniker: TGUID = '{00000102-0000-0000-C000-000000000046}';
- IID_IEnumString: TGUID = '{00000101-0000-0000-C000-000000000046}';
- IID_IEnumSTATDATA: TGUID = '{00000105-0000-0000-C000-000000000046}';
- IID_ITfContextView: TGUID = '{2433BF8E-0F9B-435C-BA2C-180611978C30}';
- IID_IEnumTfContextViews: TGUID = '{F0C0F8DD-CF38-44E1-BB0F-68CF0D551C78}';
- IID_ITfReadOnlyProperty: TGUID = '{17D49A3D-F8B8-4B2F-B254-52319DD64C53}';
- IID_ITfProperty: TGUID = '{E2449660-9542-11D2-BF46-00105A2799B5}';
- IID_IEnumTfRanges: TGUID = '{F99D3F40-8E32-11D2-BF46-00105A2799B5}';
- IID_ITfPropertyStore: TGUID = '{6834B120-88CB-11D2-BF45-00105A2799B5}';
- IID_IEnumTfProperties: TGUID = '{19188CB0-ACA9-11D2-AFC5-00105A2799B5}';
- IID_ITfRangeBackup: TGUID = '{463A506D-6992-49D2-9B88-93D55E70BB16}';
- IID_IEnumTfContexts: TGUID = '{8F1A7EA6-1654-4502-A86E-B2902344D507}';
- IID_ITfTextInputProcessor: TGUID = '{AA80E7F7-2021-11D2-93E0-0060B067B86E}';
- IID_ITfThreadMgr: TGUID = '{AA80E801-2021-11D2-93E0-0060B067B86E}';
- IID_IEnumTfDocumentMgrs: TGUID = '{AA80E808-2021-11D2-93E0-0060B067B86E}';
- IID_ITfFunctionProvider: TGUID = '{101D6610-0990-11D3-8DF0-00105A2799B5}';
- IID_IEnumTfFunctionProviders: TGUID = '{E4B24DB0-0990-11D3-8DF0-00105A2799B5}';
- IID_ITfCompartmentMgr: TGUID = '{7DCF57AC-18AD-438B-824D-979BFFB74B7C}';
- IID_ITfCompartment: TGUID = '{BB08F7A9-607A-4384-8623-056892B64371}';
- IID_IEnumGUID: TGUID = '{0002E000-0000-0000-C000-000000000046}';
- IID_ITfRangeACP: TGUID = '{057A6296-029B-4154-B79A-0D461D4EA94C}';
- IID_ITfPersistentPropertyLoaderACP: TGUID = '{4EF89150-0807-11D3-8DF0-00105A2799B5}';
- IID_ITfKeyEventSink: TGUID = '{AA80E7F5-2021-11D2-93E0-0060B067B86E}';
- IID_ITfSource: TGUID = '{4EA48A35-60AE-446F-8FD6-E6A8D82459F7}';
- IID_ITfMouseSink: TGUID = '{A1ADAAA2-3A24-449D-AC96-5183E7F5C217}';
- IID_IEnumTfLanguageProfiles: TGUID = '{3D61BF11-AC5F-42C8-A4CB-931BCC28C744}';
- IID_ITfUIElement: TGUID = '{EA1EA137-19DF-11D7-A6D2-00065B84435C}';
- IID_IEnumTfUIElements: TGUID = '{887AA91E-ACBA-4931-84DA-3C5208CF543F}';
- IID_IEnumTfInputProcessorProfiles: TGUID = '{71C6E74D-0F28-11D8-A82A-00065B84435C}';
- IID_ITfThreadMgrEx: TGUID = '{3E90ADE3-7594-4CB0-BB58-69628F5F458C}';
- IID_ITfConfigureSystemKeystrokeFeed: TGUID = '{0D2C969A-BC9C-437C-84EE-951C49B1A764}';
- IID_ITfCompositionView: TGUID = '{D7540241-F9A1-4364-BEFC-DBCD2C4395B7}';
- IID_IEnumITfCompositionView: TGUID = '{5EFD22BA-7838-46CB-88E2-CADB14124F8F}';
- IID_ITfComposition: TGUID = '{20168D64-5A8F-4A5A-B7BD-CFA29F4D0FD9}';
- IID_ITfCompositionSink: TGUID = '{A781718C-579A-4B15-A280-32B8577ACC5E}';
- IID_ITfContextComposition: TGUID = '{D40C8AAE-AC92-4FC7-9A11-0EE0E23AA39B}';
- IID_ITfContextOwnerCompositionServices: TGUID = '{86462810-593B-4916-9764-19C08E9CE110}';
- IID_ITfContextOwnerCompositionSink: TGUID = '{5F20AA40-B57A-4F34-96AB-3576F377CC79}';
- IID_ITfQueryEmbedded: TGUID = '{0FAB9BDB-D250-4169-84E5-6BE118FDD7A8}';
- IID_ITfInsertAtSelection: TGUID = '{55CE16BA-3014-41C1-9CEB-FADE1446AC6C}';
- IID_ITfCleanupContextSink: TGUID = '{01689689-7ACB-4E9B-AB7C-7EA46B12B522}';
- IID_ITfCleanupContextDurationSink: TGUID = '{45C35144-154E-4797-BED8-D33AE7BF8794}';
- IID_IEnumTfPropertyValue: TGUID = '{8ED8981B-7C10-4D7D-9FB3-AB72E9C75F72}';
- IID_ITfMouseTracker: TGUID = '{09D146CD-A544-4132-925B-7AFA8EF322D0}';
- IID_ITfMouseTrackerACP: TGUID = '{3BDD78E2-C16E-47FD-B883-CE6FACC1A208}';
- IID_ITfEditRecord: TGUID = '{42D4D099-7C1A-4A89-B836-6C6F22160DF0}';
- IID_ITfTextEditSink: TGUID = '{8127D409-CCD3-4683-967A-B43D5B482BF7}';
- IID_ITfTextLayoutSink: TGUID = '{2AF2D06A-DD5B-4927-A0B4-54F19C91FADE}';
- IID_ITfStatusSink: TGUID = '{6B7D8D73-B267-4F69-B32E-1CA321CE4F45}';
- IID_ITfEditTransactionSink: TGUID = '{708FBF70-B520-416B-B06C-2C41AB44F8BA}';
- IID_ITfContextOwner: TGUID = '{AA80E80C-2021-11D2-93E0-0060B067B86E}';
- IID_ITfContextOwnerServices: TGUID = '{B23EB630-3E1C-11D3-A745-0050040AB407}';
- IID_ITfContextKeyEventSink: TGUID = '{0552BA5D-C835-4934-BF50-846AAA67432F}';
- IID_ITextStoreACPServices: TGUID = '{AA80E901-2021-11D2-93E0-0060B067B86E}';
- IID_ITfCreatePropertyStore: TGUID = '{2463FBF0-B0AF-11D2-AFC5-00105A2799B5}';
- IID_ITfCompartmentEventSink: TGUID = '{743ABD5F-F26D-48DF-8CC5-238492419B64}';
- IID_ITfFunction: TGUID = '{DB593490-098F-11D3-8DF0-00105A2799B5}';
- IID_ITfInputProcessorProfiles: TGUID = '{1F02B6C5-7842-4EE6-8A0B-9A24183A95CA}';
- IID_ITfInputProcessorProfilesEx: TGUID = '{892F230F-FE00-4A41-A98E-FCD6DE0D35EF}';
- IID_ITfInputProcessorProfileSubstituteLayout: TGUID = '{4FD67194-1002-4513-BFF2-C0DDF6258552}';
- IID_ITfActiveLanguageProfileNotifySink: TGUID = '{B246CB75-A93E-4652-BF8C-B3FE0CFD7E57}';
- IID_ITfLanguageProfileNotifySink: TGUID = '{43C9FE15-F494-4C17-9DE2-B8A4AC350AA8}';
- IID_ITfInputProcessorProfileMgr: TGUID = '{71C6E74C-0F28-11D8-A82A-00065B84435C}';
- IID_ITfInputProcessorProfileActivationSink: TGUID = '{71C6E74E-0F28-11D8-A82A-00065B84435C}';
- IID_ITfKeystrokeMgr: TGUID = '{AA80E7F0-2021-11D2-93E0-0060B067B86E}';
- IID_ITfKeyTraceEventSink: TGUID = '{1CD4C13B-1C36-4191-A70A-7F3E611F367D}';
- IID_ITfPreservedKeyNotifySink: TGUID = '{6F77C993-D2B1-446E-853E-5912EFC8A286}';
- IID_ITfMessagePump: TGUID = '{8F1B8AD8-0B6B-4874-90C5-BD76011E8F7C}';
- IID_ITfThreadFocusSink: TGUID = '{C0F1DB0C-3A20-405C-A303-96B6010A885F}';
- IID_ITfTextInputProcessorEx: TGUID = '{6E4E2102-F9CD-433D-B496-303CE03A6507}';
- IID_ITfClientId: TGUID = '{D60A7B49-1B9F-4BE2-B702-47E9DC05DEC3}';
- IID_ITfDisplayAttributeInfo: TGUID = '{70528852-2F26-4AEA-8C96-215150578932}';
- IID_IEnumTfDisplayAttributeInfo: TGUID = '{7CEF04D7-CB75-4E80-A7AB-5F5BC7D332DE}';
- IID_ITfDisplayAttributeProvider: TGUID = '{FEE47777-163C-4769-996A-6E9C50AD8F54}';
- IID_ITfDisplayAttributeMgr: TGUID = '{8DED7393-5DB1-475C-9E71-A39111B0FF67}';
- IID_ITfDisplayAttributeNotifySink: TGUID = '{AD56F402-E162-4F25-908F-7D577CF9BDA9}';
- IID_ITfCategoryMgr: TGUID = '{C3ACEFB5-F69D-4905-938F-FCADCF4BE830}';
- IID_ITfSourceSingle: TGUID = '{73131F9C-56A9-49DD-B0EE-D046633F7528}';
- IID_ITfUIElementMgr: TGUID = '{EA1EA135-19DF-11D7-A6D2-00065B84435C}';
- IID_ITfUIElementSink: TGUID = '{EA1EA136-19DF-11D7-A6D2-00065B84435C}';
- IID_ITfCandidateListUIElement: TGUID = '{EA1EA138-19DF-11D7-A6D2-00065B84435C}';
- IID_ITfCandidateListUIElementBehavior: TGUID = '{85FAD185-58CE-497A-9460-355366B64B9A}';
- IID_ITfReadingInformationUIElement: TGUID = '{EA1EA139-19DF-11D7-A6D2-00065B84435C}';
- IID_ITfTransitoryExtensionUIElement: TGUID = '{858F956A-972F-42A2-A2F2-0321E1ABE209}';
- IID_ITfTransitoryExtensionSink: TGUID = '{A615096F-1C57-4813-8A15-55EE6E5A839C}';
- IID_ITfToolTipUIElement: TGUID = '{52B18B5C-555D-46B2-B00A-FA680144FBDB}';
- IID_ITfReverseConversionList: TGUID = '{151D69F0-86F4-4674-B721-56911E797F47}';
- IID_ITfReverseConversion: TGUID = '{A415E162-157D-417D-8A8C-0AB26C7D2781}';
- IID_ITfReverseConversionMgr: TGUID = '{B643C236-C493-41B6-ABB3-692412775CC4}';
- // *********************************************************************//
- // Declaration of Enumerations defined in Type Library
- // *********************************************************************//
- // Constants for enum __MIDL_ITfContext_0001
- type
- __MIDL_ITfContext_0001 = TOleEnum;
- const
- TF_AE_NONE = $00000000;
- TF_AE_START = $00000001;
- TF_AE_END = $00000002;
- // Constants for enum __MIDL___MIDL_itf_msctf_0000_0000_0001
- type
- __MIDL___MIDL_itf_msctf_0000_0000_0001 = TOleEnum;
- const
- TF_ANCHOR_START = $00000000;
- TF_ANCHOR_END = $00000001;
- // Constants for enum __MIDL_ITfRange_0002
- type
- __MIDL_ITfRange_0002 = TOleEnum;
- const
- TF_SD_BACKWARD = $00000000;
- TF_SD_FORWARD = $00000001;
- // Constants for enum __MIDL_ITfRange_0001
- type
- __MIDL_ITfRange_0001 = TOleEnum;
- const
- TF_GRAVITY_BACKWARD = $00000000;
- TF_GRAVITY_FORWARD = $00000001;
- // Constants for enum __MIDL_ITfTextLayoutSink_0001
- type
- __MIDL_ITfTextLayoutSink_0001 = TOleEnum;
- const
- TF_LC_CREATE = $00000000;
- TF_LC_CHANGE = $00000001;
- TF_LC_DESTROY = $00000002;
- // Constants for enum __MIDL___MIDL_itf_msctf_0001_0068_0001
- type
- __MIDL___MIDL_itf_msctf_0001_0068_0001 = TOleEnum;
- const
- TF_LS_NONE = $00000000;
- TF_LS_SOLID = $00000001;
- TF_LS_DOT = $00000002;
- TF_LS_DASH = $00000003;
- TF_LS_SQUIGGLE = $00000004;
- // Constants for enum __MIDL___MIDL_itf_msctf_0001_0068_0002
- type
- __MIDL___MIDL_itf_msctf_0001_0068_0002 = TOleEnum;
- const
- TF_CT_NONE = $00000000;
- TF_CT_SYSCOLOR = $00000001;
- TF_CT_COLORREF = $00000002;
- // Constants for enum __MIDL___MIDL_itf_msctf_0001_0068_0004
- type
- __MIDL___MIDL_itf_msctf_0001_0068_0004 = TOleEnum;
- const
- TF_ATTR_INPUT = $00000000;
- TF_ATTR_TARGET_CONVERTED = $00000001;
- TF_ATTR_CONVERTED = $00000002;
- TF_ATTR_TARGET_NOTCONVERTED = $00000003;
- TF_ATTR_INPUT_ERROR = $00000004;
- TF_ATTR_FIXEDCONVERTED = $00000005;
- TF_ATTR_OTHER = $FFFFFFFF;
- type
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- ITfThreadMgrEventSink = interface;
- ITfDocumentMgr = interface;
- ITfContext = interface;
- ITfEditSession = interface;
- ITfRange = interface;
- IDataObject = interface;
- IEnumFORMATETC = interface;
- IAdviseSink = interface;
- IPersist = interface;
- IPersistStream = interface;
- IMoniker = interface;
- ISequentialStream = interface;
- IStream = interface;
- IBindCtx = interface;
- IRunningObjectTable = interface;
- IEnumMoniker = interface;
- IEnumString = interface;
- IEnumSTATDATA = interface;
- ITfContextView = interface;
- IEnumTfContextViews = interface;
- ITfReadOnlyProperty = interface;
- ITfProperty = interface;
- IEnumTfRanges = interface;
- ITfPropertyStore = interface;
- IEnumTfProperties = interface;
- ITfRangeBackup = interface;
- IEnumTfContexts = interface;
- ITfTextInputProcessor = interface;
- ITfThreadMgr = interface;
- IEnumTfDocumentMgrs = interface;
- ITfFunctionProvider = interface;
- IEnumTfFunctionProviders = interface;
- ITfCompartmentMgr = interface;
- ITfCompartment = interface;
- IEnumGUID = interface;
- ITfRangeACP = interface;
- ITfPersistentPropertyLoaderACP = interface;
- ITfKeyEventSink = interface;
- ITfSource = interface;
- ITfMouseSink = interface;
- IEnumTfLanguageProfiles = interface;
- ITfUIElement = interface;
- IEnumTfUIElements = interface;
- IEnumTfInputProcessorProfiles = interface;
- ITfThreadMgrEx = interface;
- ITfConfigureSystemKeystrokeFeed = interface;
- ITfCompositionView = interface;
- IEnumITfCompositionView = interface;
- ITfComposition = interface;
- ITfCompositionSink = interface;
- ITfContextComposition = interface;
- ITfContextOwnerCompositionServices = interface;
- ITfContextOwnerCompositionSink = interface;
- ITfQueryEmbedded = interface;
- ITfInsertAtSelection = interface;
- ITfCleanupContextSink = interface;
- ITfCleanupContextDurationSink = interface;
- IEnumTfPropertyValue = interface;
- ITfMouseTracker = interface;
- ITfMouseTrackerACP = interface;
- ITfEditRecord = interface;
- ITfTextEditSink = interface;
- ITfTextLayoutSink = interface;
- ITfStatusSink = interface;
- ITfEditTransactionSink = interface;
- ITfContextOwner = interface;
- ITfContextOwnerServices = interface;
- ITfContextKeyEventSink = interface;
- ITextStoreACPServices = interface;
- ITfCreatePropertyStore = interface;
- ITfCompartmentEventSink = interface;
- ITfFunction = interface;
- ITfInputProcessorProfiles = interface;
- ITfInputProcessorProfilesEx = interface;
- ITfInputProcessorProfileSubstituteLayout = interface;
- ITfActiveLanguageProfileNotifySink = interface;
- ITfLanguageProfileNotifySink = interface;
- ITfInputProcessorProfileMgr = interface;
- ITfInputProcessorProfileActivationSink = interface;
- ITfKeystrokeMgr = interface;
- ITfKeyTraceEventSink = interface;
- ITfPreservedKeyNotifySink = interface;
- ITfMessagePump = interface;
- ITfThreadFocusSink = interface;
- ITfTextInputProcessorEx = interface;
- ITfClientId = interface;
- ITfDisplayAttributeInfo = interface;
- IEnumTfDisplayAttributeInfo = interface;
- ITfDisplayAttributeProvider = interface;
- ITfDisplayAttributeMgr = interface;
- ITfDisplayAttributeNotifySink = interface;
- ITfCategoryMgr = interface;
- ITfSourceSingle = interface;
- ITfUIElementMgr = interface;
- ITfUIElementSink = interface;
- ITfCandidateListUIElement = interface;
- ITfCandidateListUIElementBehavior = interface;
- ITfReadingInformationUIElement = interface;
- ITfTransitoryExtensionUIElement = interface;
- ITfTransitoryExtensionSink = interface;
- ITfToolTipUIElement = interface;
- ITfReverseConversionList = interface;
- ITfReverseConversion = interface;
- ITfReverseConversionMgr = interface;
- // *********************************************************************//
- // Declaration of structures, unions and aliases.
- // *********************************************************************//
- wireCLIPFORMAT = ^_userCLIPFORMAT;
- wireSTGMEDIUM = ^_userSTGMEDIUM;
- wireFLAG_STGMEDIUM = ^_userFLAG_STGMEDIUM;
- wireASYNC_STGMEDIUM = ^_userSTGMEDIUM;
- wireHWND = ^_RemotableHandle;
- PUserType1 = ^GUID; {*}
- PUserType2 = ^TF_SELECTION; {*}
- PPUserType1 = ^PUserType1; {*}
- PWord1 = ^Word; {*}
- PUserType3 = ^TF_HALTCOND; {*}
- PUserType4 = ^tagFORMATETC; {*}
- PPUserType2 = ^wireFLAG_STGMEDIUM; {*}
- PPUserType3 = ^wireASYNC_STGMEDIUM; {*}
- PByte1 = ^Byte; {*}
- PUserType5 = ^tagBIND_OPTS2; {*}
- PUserType6 = ^_FILETIME; {*}
- PUserType7 = ^tagPOINT; {*}
- POleVariant1 = ^OleVariant; {*}
- PUserType8 = ^TF_PERSISTENT_PROPERTY_HEADER_ACP; {*}
- PUserType9 = ^TF_PRESERVEDKEY; {*}
- PUserType10 = ^TF_DISPLAYATTRIBUTE; {*}
- PSYSUINT1 = ^SYSUINT; {*}
- UINT_PTR = LongWord;
- HKL = UINT_PTR;
- __MIDL___MIDL_itf_msctf_0006_0001_0001 = record
- Data1: LongWord;
- Data2: Word;
- Data3: Word;
- Data4: array[0..7] of Byte;
- end;
- GUID = __MIDL___MIDL_itf_msctf_0006_0001_0001;
- TfClientId = LongWord;
- TfEditCookie = LongWord;
- tagDVTARGETDEVICE = record
- tdSize: LongWord;
- tdDriverNameOffset: Word;
- tdDeviceNameOffset: Word;
- tdPortNameOffset: Word;
- tdExtDevmodeOffset: Word;
- tdData: ^Byte;
- end;
- __MIDL_IWinTypes_0001 = record
- case Integer of
- 0: (dwValue: LongWord);
- 1: (pwszName: PWideChar);
- end;
- _userCLIPFORMAT = record
- fContext: Integer;
- u: __MIDL_IWinTypes_0001;
- end;
- tagFORMATETC = record
- cfFormat: wireCLIPFORMAT;
- ptd: ^tagDVTARGETDEVICE;
- dwAspect: LongWord;
- lindex: Integer;
- tymed: LongWord;
- end;
- _BYTE_BLOB = record
- clSize: LongWord;
- abData: ^Byte;
- end;
- {$ALIGN 8}
- __MIDL_IWinTypes_0004 = record
- case Integer of
- 0: (hInproc: Integer);
- 1: (hRemote: ^_BYTE_BLOB);
- 2: (hInproc64: Int64);
- end;
- _userHMETAFILE = record
- fContext: Integer;
- u: __MIDL_IWinTypes_0004;
- end;
- {$ALIGN 4}
- _remoteMETAFILEPICT = record
- mm: Integer;
- xExt: Integer;
- yExt: Integer;
- hMF: ^_userHMETAFILE;
- end;
- {$ALIGN 8}
- __MIDL_IWinTypes_0005 = record
- case Integer of
- 0: (hInproc: Integer);
- 1: (hRemote: ^_remoteMETAFILEPICT);
- 2: (hInproc64: Int64);
- end;
- _userHMETAFILEPICT = record
- fContext: Integer;
- u: __MIDL_IWinTypes_0005;
- end;
- __MIDL_IWinTypes_0006 = record
- case Integer of
- 0: (hInproc: Integer);
- 1: (hRemote: ^_BYTE_BLOB);
- 2: (hInproc64: Int64);
- end;
- _userHENHMETAFILE = record
- fContext: Integer;
- u: __MIDL_IWinTypes_0006;
- end;
- {$ALIGN 4}
- _userBITMAP = record
- bmType: Integer;
- bmWidth: Integer;
- bmHeight: Integer;
- bmWidthBytes: Integer;
- bmPlanes: Word;
- bmBitsPixel: Word;
- cbSize: LongWord;
- pBuffer: ^Byte;
- end;
- {$ALIGN 8}
- __MIDL_IWinTypes_0007 = record
- case Integer of
- 0: (hInproc: Integer);
- 1: (hRemote: ^_userBITMAP);
- 2: (hInproc64: Int64);
- end;
- _userHBITMAP = record
- fContext: Integer;
- u: __MIDL_IWinTypes_0007;
- end;
- {$ALIGN 1}
- tagPALETTEENTRY = record
- peRed: Byte;
- peGreen: Byte;
- peBlue: Byte;
- peFlags: Byte;
- end;
- {$ALIGN 2}
- tagLOGPALETTE = record
- palVersion: Word;
- palNumEntries: Word;
- palPalEntry: ^tagPALETTEENTRY;
- end;
- {$ALIGN 8}
- __MIDL_IWinTypes_0008 = record
- case Integer of
- 0: (hInproc: Integer);
- 1: (hRemote: ^tagLOGPALETTE);
- 2: (hInproc64: Int64);
- end;
- _userHPALETTE = record
- fContext: Integer;
- u: __MIDL_IWinTypes_0008;
- end;
- {$ALIGN 4}
- _FLAGGED_BYTE_BLOB = record
- fFlags: LongWord;
- clSize: LongWord;
- abData: ^Byte;
- end;
- {$ALIGN 8}
- __MIDL_IWinTypes_0003 = record
- case Integer of
- 0: (hInproc: Integer);
- 1: (hRemote: ^_FLAGGED_BYTE_BLOB);
- 2: (hInproc64: Int64);
- end;
- _userHGLOBAL = record
- fContext: Integer;
- u: __MIDL_IWinTypes_0003;
- end;
- {$ALIGN 4}
- __MIDL_IAdviseSink_0002 = record
- case Integer of
- 0: (hBitmap: ^_userHBITMAP);
- 1: (hPalette: ^_userHPALETTE);
- 2: (hGeneric: ^_userHGLOBAL);
- end;
- _GDI_OBJECT = record
- ObjectType: LongWord;
- u: __MIDL_IAdviseSink_0002;
- end;
- __MIDL_IAdviseSink_0003 = record
- case Integer of
- 0: (hMetaFilePict: ^_userHMETAFILEPICT);
- 1: (hHEnhMetaFile: ^_userHENHMETAFILE);
- 2: (hGdiHandle: ^_GDI_OBJECT);
- 3: (hGlobal: ^_userHGLOBAL);
- 4: (lpszFileName: PWideChar);
- 5: (pstm: ^_BYTE_BLOB);
- 6: (pstg: ^_BYTE_BLOB);
- end;
- _STGMEDIUM_UNION = record
- tymed: LongWord;
- u: __MIDL_IAdviseSink_0003;
- end;
- _userSTGMEDIUM = record
- DUMMYUNIONNAME: _STGMEDIUM_UNION;
- pUnkForRelease: IUnknown;
- end;
- _userFLAG_STGMEDIUM = record
- ContextFlags: Integer;
- fPassOwnership: Integer;
- Stgmed: _userSTGMEDIUM;
- end;
- {$ALIGN 8}
- _LARGE_INTEGER = record
- QuadPart: Int64;
- end;
- _ULARGE_INTEGER = record
- QuadPart: Largeuint;
- end;
- {$ALIGN 4}
- _FILETIME = record
- dwLowDateTime: LongWord;
- dwHighDateTime: LongWord;
- end;
- {$ALIGN 8}
- tagSTATSTG = record
- pwcsName: PWideChar;
- type_: LongWord;
- cbSize: _ULARGE_INTEGER;
- mtime: _FILETIME;
- ctime: _FILETIME;
- atime: _FILETIME;
- grfMode: LongWord;
- grfLocksSupported: LongWord;
- clsid: GUID;
- grfStateBits: LongWord;
- reserved: LongWord;
- end;
- {$ALIGN 4}
- _COAUTHIDENTITY = record
- User: ^Word;
- UserLength: LongWord;
- Domain: ^Word;
- DomainLength: LongWord;
- Password: ^Word;
- PasswordLength: LongWord;
- Flags: LongWord;
- end;
- _COAUTHINFO = record
- dwAuthnSvc: LongWord;
- dwAuthzSvc: LongWord;
- pwszServerPrincName: PWideChar;
- dwAuthnLevel: LongWord;
- dwImpersonationLevel: LongWord;
- pAuthIdentityData: ^_COAUTHIDENTITY;
- dwCapabilities: LongWord;
- end;
- _COSERVERINFO = record
- dwReserved1: LongWord;
- pwszName: PWideChar;
- pAuthInfo: ^_COAUTHINFO;
- dwReserved2: LongWord;
- end;
- tagBIND_OPTS2 = record
- cbStruct: LongWord;
- grfFlags: LongWord;
- grfMode: LongWord;
- dwTickCountDeadline: LongWord;
- dwTrackFlags: LongWord;
- dwClassContext: LongWord;
- locale: LongWord;
- pServerInfo: ^_COSERVERINFO;
- end;
- tagSTATDATA = record
- formatetc: tagFORMATETC;
- advf: LongWord;
- pAdvSink: IAdviseSink;
- dwConnection: LongWord;
- end;
- TfAnchor = __MIDL___MIDL_itf_msctf_0000_0000_0001;
- TF_HALTCOND = record
- pHaltRange: ITfRange;
- aHaltPos: TfAnchor;
- dwFlags: LongWord;
- end;
- TfShiftDir = __MIDL_ITfRange_0002;
- TfGravity = __MIDL_ITfRange_0001;
- TfActiveSelEnd = __MIDL_ITfContext_0001;
- TF_SELECTIONSTYLE = record
- ase: TfActiveSelEnd;
- fInterimChar: Integer;
- end;
- TF_SELECTION = record
- range: ITfRange;
- style: TF_SELECTIONSTYLE;
- end;
- tagPOINT = record
- x: Integer;
- y: Integer;
- end;
- tagRECT = record
- left: Integer;
- top: Integer;
- right: Integer;
- bottom: Integer;
- end;
- __MIDL_IWinTypes_0009 = record
- case Integer of
- 0: (hInproc: Integer);
- 1: (hRemote: Integer);
- end;
- _RemotableHandle = record
- fContext: Integer;
- u: __MIDL_IWinTypes_0009;
- end;
- TS_STATUS = record
- dwDynamicFlags: LongWord;
- dwStaticFlags: LongWord;
- end;
- TF_STATUS = TS_STATUS;
- TF_PERSISTENT_PROPERTY_HEADER_ACP = record
- guidType: GUID;
- ichStart: Integer;
- cch: Integer;
- cb: LongWord;
- dwPrivate: LongWord;
- clsidTIP: GUID;
- end;
- LONG_PTR = Integer;
- TF_LANGUAGEPROFILE = record
- clsid: GUID;
- langid: Word;
- catid: GUID;
- fActive: Integer;
- guidProfile: GUID;
- end;
- TF_INPUTPROCESSORPROFILE = record
- dwProfileType: LongWord;
- langid: Word;
- clsid: GUID;
- guidProfile: GUID;
- catid: GUID;
- hklSubstitute: HKL;
- dwCaps: LongWord;
- HKL: HKL;
- dwFlags: LongWord;
- end;
- TfGuidAtom = LongWord;
- {$ALIGN 8}
- TF_PROPERTYVAL = record
- guidId: GUID;
- varValue: OleVariant;
- end;
- TfLayoutCode = __MIDL_ITfTextLayoutSink_0001;
- {$ALIGN 4}
- TF_PRESERVEDKEY = record
- uVKey: SYSUINT;
- uModifiers: SYSUINT;
- end;
- tagMSG = record
- hwnd: wireHWND;
- message: SYSUINT;
- wParam: UINT_PTR;
- lParam: LONG_PTR;
- time: LongWord;
- pt: tagPOINT;
- end;
- TF_DA_LINESTYLE = __MIDL___MIDL_itf_msctf_0001_0068_0001;
- TF_DA_COLORTYPE = __MIDL___MIDL_itf_msctf_0001_0068_0002;
- __MIDL___MIDL_itf_msctf_0001_0068_0003 = record
- case Integer of
- 0: (nIndex: SYSINT);
- 1: (cr: LongWord);
- end;
- TF_DA_COLOR = record
- type_: TF_DA_COLORTYPE;
- __MIDL____MIDL_itf_msctf_0001_00680000: __MIDL___MIDL_itf_msctf_0001_0068_0003;
- end;
- TF_DA_ATTR_INFO = __MIDL___MIDL_itf_msctf_0001_0068_0004;
- TF_DISPLAYATTRIBUTE = record
- crText: TF_DA_COLOR;
- crBk: TF_DA_COLOR;
- lsStyle: TF_DA_LINESTYLE;
- fBoldLine: Integer;
- crLine: TF_DA_COLOR;
- bAttr: TF_DA_ATTR_INFO;
- end;
- // *********************************************************************//
- // Interface: ITfThreadMgrEventSink
- // Flags: (0)
- // GUID: {AA80E80E-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfThreadMgrEventSink = interface(IUnknown)
- ['{AA80E80E-2021-11D2-93E0-0060B067B86E}']
- function OnInitDocumentMgr(const pdim: ITfDocumentMgr): HResult; stdcall;
- function OnUninitDocumentMgr(const pdim: ITfDocumentMgr): HResult; stdcall;
- function OnSetFocus(const pdimFocus: ITfDocumentMgr; const pdimPrevFocus: ITfDocumentMgr): HResult; stdcall;
- function OnPushContext(const pic: ITfContext): HResult; stdcall;
- function OnPopContext(const pic: ITfContext): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfDocumentMgr
- // Flags: (0)
- // GUID: {AA80E7F4-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfDocumentMgr = interface(IUnknown)
- ['{AA80E7F4-2021-11D2-93E0-0060B067B86E}']
- function CreateContext(tidOwner: TfClientId; dwFlags: LongWord; const punk: IUnknown;
- out ppic: ITfContext; out pecTextStore: TfEditCookie): HResult; stdcall;
- function Push(const pic: ITfContext): HResult; stdcall;
- function Pop(dwFlags: LongWord): HResult; stdcall;
- function GetTop(out ppic: ITfContext): HResult; stdcall;
- function GetBase(out ppic: ITfContext): HResult; stdcall;
- function EnumContexts(out ppenum: IEnumTfContexts): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfContext
- // Flags: (0)
- // GUID: {AA80E7FD-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfContext = interface(IUnknown)
- ['{AA80E7FD-2021-11D2-93E0-0060B067B86E}']
- function RequestEditSession(tid: TfClientId; const pes: ITfEditSession; dwFlags: LongWord;
- out phrSession: HResult): HResult; stdcall;
- function InWriteSession(tid: TfClientId; out pfWriteSession: Integer): HResult; stdcall;
- function GetSelection(ec: TfEditCookie; ulIndex: LongWord; ulCount: LongWord;
- out pSelection: TF_SELECTION; out pcFetched: LongWord): HResult; stdcall;
- function SetSelection(ec: TfEditCookie; ulCount: LongWord; var pSelection: TF_SELECTION): HResult; stdcall;
- function GetStart(ec: TfEditCookie; out ppStart: ITfRange): HResult; stdcall;
- function GetEnd(ec: TfEditCookie; out ppEnd: ITfRange): HResult; stdcall;
- function GetActiveView(out ppView: ITfContextView): HResult; stdcall;
- function EnumViews(out ppenum: IEnumTfContextViews): HResult; stdcall;
- function GetStatus(out pdcs: TF_STATUS): HResult; stdcall;
- function GetProperty(var guidProp: GUID; out ppProp: ITfProperty): HResult; stdcall;
- function GetAppProperty(var guidProp: GUID; out ppProp: ITfReadOnlyProperty): HResult; stdcall;
- function TrackProperties(prgProp: PPUserType1; cProp: LongWord; prgAppProp: PPUserType1;
- cAppProp: LongWord; out ppProperty: ITfReadOnlyProperty): HResult; stdcall;
- function EnumProperties(out ppenum: IEnumTfProperties): HResult; stdcall;
- function GetDocumentMgr(out ppDm: ITfDocumentMgr): HResult; stdcall;
- function CreateRangeBackup(ec: TfEditCookie; const pRange: ITfRange;
- out ppBackup: ITfRangeBackup): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfEditSession
- // Flags: (0)
- // GUID: {AA80E803-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfEditSession = interface(IUnknown)
- ['{AA80E803-2021-11D2-93E0-0060B067B86E}']
- function DoEditSession(ec: TfEditCookie): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfRange
- // Flags: (0)
- // GUID: {AA80E7FF-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfRange = interface(IUnknown)
- ['{AA80E7FF-2021-11D2-93E0-0060B067B86E}']
- function GetText(ec: TfEditCookie; dwFlags: LongWord; out pchText: Word; cchMax: LongWord;
- out pcch: LongWord): HResult; stdcall;
- function SetText(ec: TfEditCookie; dwFlags: LongWord; var pchText: Word; cch: Integer): HResult; stdcall;
- function GetFormattedText(ec: TfEditCookie; out ppDataObject: IDataObject): HResult; stdcall;
- function GetEmbedded(ec: TfEditCookie; var rguidService: GUID; var riid: GUID;
- out ppunk: IUnknown): HResult; stdcall;
- function InsertEmbedded(ec: TfEditCookie; dwFlags: LongWord; const pDataObject: IDataObject): HResult; stdcall;
- function ShiftStart(ec: TfEditCookie; cchReq: Integer; out pcch: Integer; var pHalt: TF_HALTCOND): HResult; stdcall;
- function ShiftEnd(ec: TfEditCookie; cchReq: Integer; out pcch: Integer; var pHalt: TF_HALTCOND): HResult; stdcall;
- function ShiftStartToRange(ec: TfEditCookie; const pRange: ITfRange; aPos: TfAnchor): HResult; stdcall;
- function ShiftEndToRange(ec: TfEditCookie; const pRange: ITfRange; aPos: TfAnchor): HResult; stdcall;
- function ShiftStartRegion(ec: TfEditCookie; dir: TfShiftDir; out pfNoRegion: Integer): HResult; stdcall;
- function ShiftEndRegion(ec: TfEditCookie; dir: TfShiftDir; out pfNoRegion: Integer): HResult; stdcall;
- function IsEmpty(ec: TfEditCookie; out pfEmpty: Integer): HResult; stdcall;
- function Collapse(ec: TfEditCookie; aPos: TfAnchor): HResult; stdcall;
- function IsEqualStart(ec: TfEditCookie; const pWith: ITfRange; aPos: TfAnchor;
- out pfEqual: Integer): HResult; stdcall;
- function IsEqualEnd(ec: TfEditCookie; const pWith: ITfRange; aPos: TfAnchor;
- out pfEqual: Integer): HResult; stdcall;
- function CompareStart(ec: TfEditCookie; const pWith: ITfRange; aPos: TfAnchor;
- out plResult: Integer): HResult; stdcall;
- function CompareEnd(ec: TfEditCookie; const pWith: ITfRange; aPos: TfAnchor;
- out plResult: Integer): HResult; stdcall;
- function AdjustForInsert(ec: TfEditCookie; cchInsert: LongWord; out pfInsertOk: Integer): HResult; stdcall;
- function GetGravity(out pgStart: TfGravity; out pgEnd: TfGravity): HResult; stdcall;
- function SetGravity(ec: TfEditCookie; gStart: TfGravity; gEnd: TfGravity): HResult; stdcall;
- function Clone(out ppClone: ITfRange): HResult; stdcall;
- function GetContext(out ppContext: ITfContext): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IDataObject
- // Flags: (0)
- // GUID: {0000010E-0000-0000-C000-000000000046}
- // *********************************************************************//
- IDataObject = interface(IUnknown)
- ['{0000010E-0000-0000-C000-000000000046}']
- function RemoteGetData(var pformatetcIn: tagFORMATETC; out pRemoteMedium: wireSTGMEDIUM): HResult; stdcall;
- function RemoteGetDataHere(var pformatetc: tagFORMATETC; var pRemoteMedium: wireSTGMEDIUM): HResult; stdcall;
- function QueryGetData(var pformatetc: tagFORMATETC): HResult; stdcall;
- function GetCanonicalFormatEtc(var pformatectIn: tagFORMATETC; out pformatetcOut: tagFORMATETC): HResult; stdcall;
- function RemoteSetData(var pformatetc: tagFORMATETC; pmedium: PPUserType2; fRelease: Integer): HResult; stdcall;
- function EnumFormatEtc(dwDirection: LongWord; out ppenumFormatEtc: IEnumFORMATETC): HResult; stdcall;
- function DAdvise(var pformatetc: tagFORMATETC; advf: LongWord; const pAdvSink: IAdviseSink;
- out pdwConnection: LongWord): HResult; stdcall;
- function DUnadvise(dwConnection: LongWord): HResult; stdcall;
- function EnumDAdvise(out ppenumAdvise: IEnumSTATDATA): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumFORMATETC
- // Flags: (0)
- // GUID: {00000103-0000-0000-C000-000000000046}
- // *********************************************************************//
- IEnumFORMATETC = interface(IUnknown)
- ['{00000103-0000-0000-C000-000000000046}']
- function RemoteNext(celt: LongWord; out rgelt: tagFORMATETC; out pceltFetched: LongWord): HResult; stdcall;
- function Skip(celt: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Clone(out ppenum: IEnumFORMATETC): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IAdviseSink
- // Flags: (0)
- // GUID: {0000010F-0000-0000-C000-000000000046}
- // *********************************************************************//
- IAdviseSink = interface(IUnknown)
- ['{0000010F-0000-0000-C000-000000000046}']
- function RemoteOnDataChange(var pformatetc: tagFORMATETC; pStgmed: PPUserType3): HResult; stdcall;
- function RemoteOnViewChange(dwAspect: LongWord; lindex: Integer): HResult; stdcall;
- function RemoteOnRename(const pmk: IMoniker): HResult; stdcall;
- function RemoteOnSave: HResult; stdcall;
- function RemoteOnClose: HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IPersist
- // Flags: (0)
- // GUID: {0000010C-0000-0000-C000-000000000046}
- // *********************************************************************//
- IPersist = interface(IUnknown)
- ['{0000010C-0000-0000-C000-000000000046}']
- function GetClassID(out pClassID: GUID): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IPersistStream
- // Flags: (0)
- // GUID: {00000109-0000-0000-C000-000000000046}
- // *********************************************************************//
- IPersistStream = interface(IPersist)
- ['{00000109-0000-0000-C000-000000000046}']
- function IsDirty: HResult; stdcall;
- function Load(const pstm: IStream): HResult; stdcall;
- function Save(const pstm: IStream; fClearDirty: Integer): HResult; stdcall;
- function GetSizeMax(out pcbSize: _ULARGE_INTEGER): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IMoniker
- // Flags: (0)
- // GUID: {0000000F-0000-0000-C000-000000000046}
- // *********************************************************************//
- IMoniker = interface(IPersistStream)
- ['{0000000F-0000-0000-C000-000000000046}']
- function RemoteBindToObject(const pbc: IBindCtx; const pmkToLeft: IMoniker;
- var riidResult: GUID; out ppvResult: IUnknown): HResult; stdcall;
- function RemoteBindToStorage(const pbc: IBindCtx; const pmkToLeft: IMoniker; var riid: GUID;
- out ppvObj: IUnknown): HResult; stdcall;
- function Reduce(const pbc: IBindCtx; dwReduceHowFar: LongWord; var ppmkToLeft: IMoniker;
- out ppmkReduced: IMoniker): HResult; stdcall;
- function ComposeWith(const pmkRight: IMoniker; fOnlyIfNotGeneric: Integer;
- out ppmkComposite: IMoniker): HResult; stdcall;
- function Enum(fForward: Integer; out ppenumMoniker: IEnumMoniker): HResult; stdcall;
- function IsEqual(const pmkOtherMoniker: IMoniker): HResult; stdcall;
- function Hash(out pdwHash: LongWord): HResult; stdcall;
- function IsRunning(const pbc: IBindCtx; const pmkToLeft: IMoniker;
- const pmkNewlyRunning: IMoniker): HResult; stdcall;
- function GetTimeOfLastChange(const pbc: IBindCtx; const pmkToLeft: IMoniker;
- out pfiletime: _FILETIME): HResult; stdcall;
- function Inverse(out ppmk: IMoniker): HResult; stdcall;
- function CommonPrefixWith(const pmkOther: IMoniker; out ppmkPrefix: IMoniker): HResult; stdcall;
- function RelativePathTo(const pmkOther: IMoniker; out ppmkRelPath: IMoniker): HResult; stdcall;
- function GetDisplayName(const pbc: IBindCtx; const pmkToLeft: IMoniker;
- out ppszDisplayName: PWideChar): HResult; stdcall;
- function ParseDisplayName(const pbc: IBindCtx; const pmkToLeft: IMoniker;
- pszDisplayName: PWideChar; out pchEaten: LongWord;
- out ppmkOut: IMoniker): HResult; stdcall;
- function IsSystemMoniker(out pdwMksys: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ISequentialStream
- // Flags: (0)
- // GUID: {0C733A30-2A1C-11CE-ADE5-00AA0044773D}
- // *********************************************************************//
- ISequentialStream = interface(IUnknown)
- ['{0C733A30-2A1C-11CE-ADE5-00AA0044773D}']
- function RemoteRead(out pv: Byte; cb: LongWord; out pcbRead: LongWord): HResult; stdcall;
- function RemoteWrite(var pv: Byte; cb: LongWord; out pcbWritten: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IStream
- // Flags: (0)
- // GUID: {0000000C-0000-0000-C000-000000000046}
- // *********************************************************************//
- IStream = interface(ISequentialStream)
- ['{0000000C-0000-0000-C000-000000000046}']
- function RemoteSeek(dlibMove: _LARGE_INTEGER; dwOrigin: LongWord;
- out plibNewPosition: _ULARGE_INTEGER): HResult; stdcall;
- function SetSize(libNewSize: _ULARGE_INTEGER): HResult; stdcall;
- function RemoteCopyTo(const pstm: IStream; cb: _ULARGE_INTEGER; out pcbRead: _ULARGE_INTEGER;
- out pcbWritten: _ULARGE_INTEGER): HResult; stdcall;
- function Commit(grfCommitFlags: LongWord): HResult; stdcall;
- function Revert: HResult; stdcall;
- function LockRegion(libOffset: _ULARGE_INTEGER; cb: _ULARGE_INTEGER; dwLockType: LongWord): HResult; stdcall;
- function UnlockRegion(libOffset: _ULARGE_INTEGER; cb: _ULARGE_INTEGER; dwLockType: LongWord): HResult; stdcall;
- function Stat(out pstatstg: tagSTATSTG; grfStatFlag: LongWord): HResult; stdcall;
- function Clone(out ppstm: IStream): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IBindCtx
- // Flags: (0)
- // GUID: {0000000E-0000-0000-C000-000000000046}
- // *********************************************************************//
- IBindCtx = interface(IUnknown)
- ['{0000000E-0000-0000-C000-000000000046}']
- function RegisterObjectBound(const punk: IUnknown): HResult; stdcall;
- function RevokeObjectBound(const punk: IUnknown): HResult; stdcall;
- function ReleaseBoundObjects: HResult; stdcall;
- function RemoteSetBindOptions(var pbindopts: tagBIND_OPTS2): HResult; stdcall;
- function RemoteGetBindOptions(var pbindopts: tagBIND_OPTS2): HResult; stdcall;
- function GetRunningObjectTable(out pprot: IRunningObjectTable): HResult; stdcall;
- function RegisterObjectParam(pszKey: PWideChar; const punk: IUnknown): HResult; stdcall;
- function GetObjectParam(pszKey: PWideChar; out ppunk: IUnknown): HResult; stdcall;
- function EnumObjectParam(out ppenum: IEnumString): HResult; stdcall;
- function RevokeObjectParam(pszKey: PWideChar): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IRunningObjectTable
- // Flags: (0)
- // GUID: {00000010-0000-0000-C000-000000000046}
- // *********************************************************************//
- IRunningObjectTable = interface(IUnknown)
- ['{00000010-0000-0000-C000-000000000046}']
- function Register(grfFlags: LongWord; const punkObject: IUnknown;
- const pmkObjectName: IMoniker; out pdwRegister: LongWord): HResult; stdcall;
- function Revoke(dwRegister: LongWord): HResult; stdcall;
- function IsRunning(const pmkObjectName: IMoniker): HResult; stdcall;
- function GetObject(const pmkObjectName: IMoniker; out ppunkObject: IUnknown): HResult; stdcall;
- function NoteChangeTime(dwRegister: LongWord; var pfiletime: _FILETIME): HResult; stdcall;
- function GetTimeOfLastChange(const pmkObjectName: IMoniker; out pfiletime: _FILETIME): HResult; stdcall;
- function EnumRunning(out ppenumMoniker: IEnumMoniker): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumMoniker
- // Flags: (0)
- // GUID: {00000102-0000-0000-C000-000000000046}
- // *********************************************************************//
- IEnumMoniker = interface(IUnknown)
- ['{00000102-0000-0000-C000-000000000046}']
- function RemoteNext(celt: LongWord; out rgelt: IMoniker; out pceltFetched: LongWord): HResult; stdcall;
- function Skip(celt: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Clone(out ppenum: IEnumMoniker): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumString
- // Flags: (0)
- // GUID: {00000101-0000-0000-C000-000000000046}
- // *********************************************************************//
- IEnumString = interface(IUnknown)
- ['{00000101-0000-0000-C000-000000000046}']
- function RemoteNext(celt: LongWord; out rgelt: PWideChar; out pceltFetched: LongWord): HResult; stdcall;
- function Skip(celt: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Clone(out ppenum: IEnumString): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumSTATDATA
- // Flags: (0)
- // GUID: {00000105-0000-0000-C000-000000000046}
- // *********************************************************************//
- IEnumSTATDATA = interface(IUnknown)
- ['{00000105-0000-0000-C000-000000000046}']
- function RemoteNext(celt: LongWord; out rgelt: tagSTATDATA; out pceltFetched: LongWord): HResult; stdcall;
- function Skip(celt: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Clone(out ppenum: IEnumSTATDATA): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfContextView
- // Flags: (0)
- // GUID: {2433BF8E-0F9B-435C-BA2C-180611978C30}
- // *********************************************************************//
- ITfContextView = interface(IUnknown)
- ['{2433BF8E-0F9B-435C-BA2C-180611978C30}']
- function GetRangeFromPoint(ec: TfEditCookie; var ppt: tagPOINT; dwFlags: LongWord;
- out ppRange: ITfRange): HResult; stdcall;
- function GetTextExt(ec: TfEditCookie; const pRange: ITfRange; out prc: tagRECT;
- out pfClipped: Integer): HResult; stdcall;
- function GetScreenExt(out prc: tagRECT): HResult; stdcall;
- function GetWnd(out phwnd: wireHWND): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfContextViews
- // Flags: (0)
- // GUID: {F0C0F8DD-CF38-44E1-BB0F-68CF0D551C78}
- // *********************************************************************//
- IEnumTfContextViews = interface(IUnknown)
- ['{F0C0F8DD-CF38-44E1-BB0F-68CF0D551C78}']
- function Clone(out ppenum: IEnumTfContextViews): HResult; stdcall;
- function Next(ulCount: LongWord; out rgViews: ITfContextView; out pcFetched: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfReadOnlyProperty
- // Flags: (0)
- // GUID: {17D49A3D-F8B8-4B2F-B254-52319DD64C53}
- // *********************************************************************//
- ITfReadOnlyProperty = interface(IUnknown)
- ['{17D49A3D-F8B8-4B2F-B254-52319DD64C53}']
- function GetType(out pguid: GUID): HResult; stdcall;
- function EnumRanges(ec: TfEditCookie; out ppenum: IEnumTfRanges; const pTargetRange: ITfRange): HResult; stdcall;
- function GetValue(ec: TfEditCookie; const pRange: ITfRange; out pvarValue: OleVariant): HResult; stdcall;
- function GetContext(out ppContext: ITfContext): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfProperty
- // Flags: (0)
- // GUID: {E2449660-9542-11D2-BF46-00105A2799B5}
- // *********************************************************************//
- ITfProperty = interface(ITfReadOnlyProperty)
- ['{E2449660-9542-11D2-BF46-00105A2799B5}']
- function FindRange(ec: TfEditCookie; const pRange: ITfRange; out ppRange: ITfRange;
- aPos: TfAnchor): HResult; stdcall;
- function SetValueStore(ec: TfEditCookie; const pRange: ITfRange;
- const pPropStore: ITfPropertyStore): HResult; stdcall;
- function SetValue(ec: TfEditCookie; const pRange: ITfRange; const pvarValue: OleVariant): HResult; stdcall;
- function Clear(ec: TfEditCookie; const pRange: ITfRange): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfRanges
- // Flags: (0)
- // GUID: {F99D3F40-8E32-11D2-BF46-00105A2799B5}
- // *********************************************************************//
- IEnumTfRanges = interface(IUnknown)
- ['{F99D3F40-8E32-11D2-BF46-00105A2799B5}']
- function Clone(out ppenum: IEnumTfRanges): HResult; stdcall;
- function Next(ulCount: LongWord; out ppRange: ITfRange; out pcFetched: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfPropertyStore
- // Flags: (0)
- // GUID: {6834B120-88CB-11D2-BF45-00105A2799B5}
- // *********************************************************************//
- ITfPropertyStore = interface(IUnknown)
- ['{6834B120-88CB-11D2-BF45-00105A2799B5}']
- function GetType(out pguid: GUID): HResult; stdcall;
- function GetDataType(out pdwReserved: LongWord): HResult; stdcall;
- function GetData(out pvarValue: OleVariant): HResult; stdcall;
- function OnTextUpdated(dwFlags: LongWord; const pRangeNew: ITfRange; out pfAccept: Integer): HResult; stdcall;
- function Shrink(const pRangeNew: ITfRange; out pfFree: Integer): HResult; stdcall;
- function Divide(const pRangeThis: ITfRange; const pRangeNew: ITfRange;
- out ppPropStore: ITfPropertyStore): HResult; stdcall;
- function Clone(out pPropStore: ITfPropertyStore): HResult; stdcall;
- function GetPropertyRangeCreator(out pclsid: GUID): HResult; stdcall;
- function Serialize(const pStream: IStream; out pcb: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfProperties
- // Flags: (0)
- // GUID: {19188CB0-ACA9-11D2-AFC5-00105A2799B5}
- // *********************************************************************//
- IEnumTfProperties = interface(IUnknown)
- ['{19188CB0-ACA9-11D2-AFC5-00105A2799B5}']
- function Clone(out ppenum: IEnumTfProperties): HResult; stdcall;
- function Next(ulCount: LongWord; out ppProp: ITfProperty; out pcFetched: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfRangeBackup
- // Flags: (0)
- // GUID: {463A506D-6992-49D2-9B88-93D55E70BB16}
- // *********************************************************************//
- ITfRangeBackup = interface(IUnknown)
- ['{463A506D-6992-49D2-9B88-93D55E70BB16}']
- function Restore(ec: TfEditCookie; const pRange: ITfRange): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfContexts
- // Flags: (0)
- // GUID: {8F1A7EA6-1654-4502-A86E-B2902344D507}
- // *********************************************************************//
- IEnumTfContexts = interface(IUnknown)
- ['{8F1A7EA6-1654-4502-A86E-B2902344D507}']
- function Clone(out ppenum: IEnumTfContexts): HResult; stdcall;
- function Next(ulCount: LongWord; out rgContext: ITfContext; out pcFetched: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfTextInputProcessor
- // Flags: (0)
- // GUID: {AA80E7F7-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfTextInputProcessor = interface(IUnknown)
- ['{AA80E7F7-2021-11D2-93E0-0060B067B86E}']
- function Activate(const ptim: ITfThreadMgr; tid: TfClientId): HResult; stdcall;
- function Deactivate: HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfThreadMgr
- // Flags: (0)
- // GUID: {AA80E801-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfThreadMgr = interface(IUnknown)
- ['{AA80E801-2021-11D2-93E0-0060B067B86E}']
- function Activate(out ptid: TfClientId): HResult; stdcall;
- function Deactivate: HResult; stdcall;
- function CreateDocumentMgr(out ppdim: ITfDocumentMgr): HResult; stdcall;
- function EnumDocumentMgrs(out ppenum: IEnumTfDocumentMgrs): HResult; stdcall;
- function GetFocus(out ppdimFocus: ITfDocumentMgr): HResult; stdcall;
- function SetFocus(const pdimFocus: ITfDocumentMgr): HResult; stdcall;
- function AssociateFocus(var hwnd: _RemotableHandle; const pdimNew: ITfDocumentMgr;
- out ppdimPrev: ITfDocumentMgr): HResult; stdcall;
- function IsThreadFocus(out pfThreadFocus: Integer): HResult; stdcall;
- function GetFunctionProvider(var clsid: GUID; out ppFuncProv: ITfFunctionProvider): HResult; stdcall;
- function EnumFunctionProviders(out ppenum: IEnumTfFunctionProviders): HResult; stdcall;
- function GetGlobalCompartment(out ppCompMgr: ITfCompartmentMgr): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfDocumentMgrs
- // Flags: (0)
- // GUID: {AA80E808-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- IEnumTfDocumentMgrs = interface(IUnknown)
- ['{AA80E808-2021-11D2-93E0-0060B067B86E}']
- function Clone(out ppenum: IEnumTfDocumentMgrs): HResult; stdcall;
- function Next(ulCount: LongWord; out rgDocumentMgr: ITfDocumentMgr; out pcFetched: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfFunctionProvider
- // Flags: (0)
- // GUID: {101D6610-0990-11D3-8DF0-00105A2799B5}
- // *********************************************************************//
- ITfFunctionProvider = interface(IUnknown)
- ['{101D6610-0990-11D3-8DF0-00105A2799B5}']
- function GetType(out pguid: GUID): HResult; stdcall;
- function GetDescription(out pbstrDesc: WideString): HResult; stdcall;
- function GetFunction(var rguid: GUID; var riid: GUID; out ppunk: IUnknown): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfFunctionProviders
- // Flags: (0)
- // GUID: {E4B24DB0-0990-11D3-8DF0-00105A2799B5}
- // *********************************************************************//
- IEnumTfFunctionProviders = interface(IUnknown)
- ['{E4B24DB0-0990-11D3-8DF0-00105A2799B5}']
- function Clone(out ppenum: IEnumTfFunctionProviders): HResult; stdcall;
- function Next(ulCount: LongWord; out ppCmdobj: ITfFunctionProvider; out pcFetch: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCompartmentMgr
- // Flags: (0)
- // GUID: {7DCF57AC-18AD-438B-824D-979BFFB74B7C}
- // *********************************************************************//
- ITfCompartmentMgr = interface(IUnknown)
- ['{7DCF57AC-18AD-438B-824D-979BFFB74B7C}']
- function GetCompartment(var rguid: GUID; out ppcomp: ITfCompartment): HResult; stdcall;
- function ClearCompartment(tid: TfClientId; var rguid: GUID): HResult; stdcall;
- function EnumCompartments(out ppenum: IEnumGUID): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCompartment
- // Flags: (0)
- // GUID: {BB08F7A9-607A-4384-8623-056892B64371}
- // *********************************************************************//
- ITfCompartment = interface(IUnknown)
- ['{BB08F7A9-607A-4384-8623-056892B64371}']
- function SetValue(tid: TfClientId; const pvarValue: OleVariant): HResult; stdcall;
- function GetValue(out pvarValue: OleVariant): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumGUID
- // Flags: (0)
- // GUID: {0002E000-0000-0000-C000-000000000046}
- // *********************************************************************//
- IEnumGUID = interface(IUnknown)
- ['{0002E000-0000-0000-C000-000000000046}']
- function RemoteNext(celt: LongWord; out rgelt: GUID; out pceltFetched: LongWord): HResult; stdcall;
- function Skip(celt: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Clone(out ppenum: IEnumGUID): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfRangeACP
- // Flags: (0)
- // GUID: {057A6296-029B-4154-B79A-0D461D4EA94C}
- // *********************************************************************//
- ITfRangeACP = interface(ITfRange)
- ['{057A6296-029B-4154-B79A-0D461D4EA94C}']
- function GetExtent(out pacpAnchor: Integer; out pcch: Integer): HResult; stdcall;
- function SetExtent(acpAnchor: Integer; cch: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfPersistentPropertyLoaderACP
- // Flags: (0)
- // GUID: {4EF89150-0807-11D3-8DF0-00105A2799B5}
- // *********************************************************************//
- ITfPersistentPropertyLoaderACP = interface(IUnknown)
- ['{4EF89150-0807-11D3-8DF0-00105A2799B5}']
- function LoadProperty(var pHdr: TF_PERSISTENT_PROPERTY_HEADER_ACP; out ppStream: IStream): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfKeyEventSink
- // Flags: (0)
- // GUID: {AA80E7F5-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfKeyEventSink = interface(IUnknown)
- ['{AA80E7F5-2021-11D2-93E0-0060B067B86E}']
- function OnSetFocus(fForeground: Integer): HResult; stdcall;
- function OnTestKeyDown(const pic: ITfContext; wParam: UINT_PTR; lParam: LONG_PTR;
- out pfEaten: Integer): HResult; stdcall;
- function OnTestKeyUp(const pic: ITfContext; wParam: UINT_PTR; lParam: LONG_PTR;
- out pfEaten: Integer): HResult; stdcall;
- function OnKeyDown(const pic: ITfContext; wParam: UINT_PTR; lParam: LONG_PTR;
- out pfEaten: Integer): HResult; stdcall;
- function OnKeyUp(const pic: ITfContext; wParam: UINT_PTR; lParam: LONG_PTR; out pfEaten: Integer): HResult; stdcall;
- function OnPreservedKey(const pic: ITfContext; var rguid: GUID; out pfEaten: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfSource
- // Flags: (0)
- // GUID: {4EA48A35-60AE-446F-8FD6-E6A8D82459F7}
- // *********************************************************************//
- ITfSource = interface(IUnknown)
- ['{4EA48A35-60AE-446F-8FD6-E6A8D82459F7}']
- function AdviseSink(var riid: GUID; const punk: IUnknown; out pdwCookie: LongWord): HResult; stdcall;
- function UnadviseSink(dwCookie: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfMouseSink
- // Flags: (0)
- // GUID: {A1ADAAA2-3A24-449D-AC96-5183E7F5C217}
- // *********************************************************************//
- ITfMouseSink = interface(IUnknown)
- ['{A1ADAAA2-3A24-449D-AC96-5183E7F5C217}']
- function OnMouseEvent(uEdge: LongWord; uQuadrant: LongWord; dwBtnStatus: LongWord;
- out pfEaten: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfLanguageProfiles
- // Flags: (0)
- // GUID: {3D61BF11-AC5F-42C8-A4CB-931BCC28C744}
- // *********************************************************************//
- IEnumTfLanguageProfiles = interface(IUnknown)
- ['{3D61BF11-AC5F-42C8-A4CB-931BCC28C744}']
- function Clone(out ppenum: IEnumTfLanguageProfiles): HResult; stdcall;
- function Next(ulCount: LongWord; out pProfile: TF_LANGUAGEPROFILE; out pcFetch: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfUIElement
- // Flags: (0)
- // GUID: {EA1EA137-19DF-11D7-A6D2-00065B84435C}
- // *********************************************************************//
- ITfUIElement = interface(IUnknown)
- ['{EA1EA137-19DF-11D7-A6D2-00065B84435C}']
- function GetDescription(out pbstrDescription: WideString): HResult; stdcall;
- function GetGUID(out pguid: GUID): HResult; stdcall;
- function Show(bShow: Integer): HResult; stdcall;
- function IsShown(out pbShow: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfUIElements
- // Flags: (0)
- // GUID: {887AA91E-ACBA-4931-84DA-3C5208CF543F}
- // *********************************************************************//
- IEnumTfUIElements = interface(IUnknown)
- ['{887AA91E-ACBA-4931-84DA-3C5208CF543F}']
- function Clone(out ppenum: IEnumTfUIElements): HResult; stdcall;
- function Next(ulCount: LongWord; out ppElement: ITfUIElement; out pcFetched: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfInputProcessorProfiles
- // Flags: (0)
- // GUID: {71C6E74D-0F28-11D8-A82A-00065B84435C}
- // *********************************************************************//
- IEnumTfInputProcessorProfiles = interface(IUnknown)
- ['{71C6E74D-0F28-11D8-A82A-00065B84435C}']
- function Clone(out ppenum: IEnumTfInputProcessorProfiles): HResult; stdcall;
- function Next(ulCount: LongWord; out pProfile: TF_INPUTPROCESSORPROFILE; out pcFetch: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfThreadMgrEx
- // Flags: (0)
- // GUID: {3E90ADE3-7594-4CB0-BB58-69628F5F458C}
- // *********************************************************************//
- ITfThreadMgrEx = interface(ITfThreadMgr)
- ['{3E90ADE3-7594-4CB0-BB58-69628F5F458C}']
- function ActivateEx(out ptid: TfClientId; dwFlags: LongWord): HResult; stdcall;
- function GetActiveFlags(out lpdwFlags: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfConfigureSystemKeystrokeFeed
- // Flags: (0)
- // GUID: {0D2C969A-BC9C-437C-84EE-951C49B1A764}
- // *********************************************************************//
- ITfConfigureSystemKeystrokeFeed = interface(IUnknown)
- ['{0D2C969A-BC9C-437C-84EE-951C49B1A764}']
- function DisableSystemKeystrokeFeed: HResult; stdcall;
- function EnableSystemKeystrokeFeed: HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCompositionView
- // Flags: (0)
- // GUID: {D7540241-F9A1-4364-BEFC-DBCD2C4395B7}
- // *********************************************************************//
- ITfCompositionView = interface(IUnknown)
- ['{D7540241-F9A1-4364-BEFC-DBCD2C4395B7}']
- function GetOwnerClsid(out pclsid: GUID): HResult; stdcall;
- function GetRange(out ppRange: ITfRange): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumITfCompositionView
- // Flags: (0)
- // GUID: {5EFD22BA-7838-46CB-88E2-CADB14124F8F}
- // *********************************************************************//
- IEnumITfCompositionView = interface(IUnknown)
- ['{5EFD22BA-7838-46CB-88E2-CADB14124F8F}']
- function Clone(out ppenum: IEnumITfCompositionView): HResult; stdcall;
- function Next(ulCount: LongWord; out rgCompositionView: ITfCompositionView;
- out pcFetched: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfComposition
- // Flags: (0)
- // GUID: {20168D64-5A8F-4A5A-B7BD-CFA29F4D0FD9}
- // *********************************************************************//
- ITfComposition = interface(IUnknown)
- ['{20168D64-5A8F-4A5A-B7BD-CFA29F4D0FD9}']
- function GetRange(out ppRange: ITfRange): HResult; stdcall;
- function ShiftStart(ecWrite: TfEditCookie; const pNewStart: ITfRange): HResult; stdcall;
- function ShiftEnd(ecWrite: TfEditCookie; const pNewEnd: ITfRange): HResult; stdcall;
- function EndComposition(ecWrite: TfEditCookie): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCompositionSink
- // Flags: (0)
- // GUID: {A781718C-579A-4B15-A280-32B8577ACC5E}
- // *********************************************************************//
- ITfCompositionSink = interface(IUnknown)
- ['{A781718C-579A-4B15-A280-32B8577ACC5E}']
- function OnCompositionTerminated(ecWrite: TfEditCookie; const pComposition: ITfComposition): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfContextComposition
- // Flags: (0)
- // GUID: {D40C8AAE-AC92-4FC7-9A11-0EE0E23AA39B}
- // *********************************************************************//
- ITfContextComposition = interface(IUnknown)
- ['{D40C8AAE-AC92-4FC7-9A11-0EE0E23AA39B}']
- function StartComposition(ecWrite: TfEditCookie; const pCompositionRange: ITfRange;
- const pSink: ITfCompositionSink; out ppComposition: ITfComposition): HResult; stdcall;
- function EnumCompositions(out ppenum: IEnumITfCompositionView): HResult; stdcall;
- function FindComposition(ecRead: TfEditCookie; const pTestRange: ITfRange;
- out ppenum: IEnumITfCompositionView): HResult; stdcall;
- function TakeOwnership(ecWrite: TfEditCookie; const pComposition: ITfCompositionView;
- const pSink: ITfCompositionSink; out ppComposition: ITfComposition): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfContextOwnerCompositionServices
- // Flags: (0)
- // GUID: {86462810-593B-4916-9764-19C08E9CE110}
- // *********************************************************************//
- ITfContextOwnerCompositionServices = interface(ITfContextComposition)
- ['{86462810-593B-4916-9764-19C08E9CE110}']
- function TerminateComposition(const pComposition: ITfCompositionView): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfContextOwnerCompositionSink
- // Flags: (0)
- // GUID: {5F20AA40-B57A-4F34-96AB-3576F377CC79}
- // *********************************************************************//
- ITfContextOwnerCompositionSink = interface(IUnknown)
- ['{5F20AA40-B57A-4F34-96AB-3576F377CC79}']
- function OnStartComposition(const pComposition: ITfCompositionView; out pfOk: Integer): HResult; stdcall;
- function OnUpdateComposition(const pComposition: ITfCompositionView; const pRangeNew: ITfRange): HResult; stdcall;
- function OnEndComposition(const pComposition: ITfCompositionView): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfQueryEmbedded
- // Flags: (0)
- // GUID: {0FAB9BDB-D250-4169-84E5-6BE118FDD7A8}
- // *********************************************************************//
- ITfQueryEmbedded = interface(IUnknown)
- ['{0FAB9BDB-D250-4169-84E5-6BE118FDD7A8}']
- function QueryInsertEmbedded(var pguidService: GUID; var pformatetc: tagFORMATETC;
- out pfInsertable: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfInsertAtSelection
- // Flags: (0)
- // GUID: {55CE16BA-3014-41C1-9CEB-FADE1446AC6C}
- // *********************************************************************//
- ITfInsertAtSelection = interface(IUnknown)
- ['{55CE16BA-3014-41C1-9CEB-FADE1446AC6C}']
- function InsertTextAtSelection(ec: TfEditCookie; dwFlags: LongWord; var pchText: Word;
- cch: Integer; out ppRange: ITfRange): HResult; stdcall;
- function InsertEmbeddedAtSelection(ec: TfEditCookie; dwFlags: LongWord;
- const pDataObject: IDataObject; out ppRange: ITfRange): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCleanupContextSink
- // Flags: (0)
- // GUID: {01689689-7ACB-4E9B-AB7C-7EA46B12B522}
- // *********************************************************************//
- ITfCleanupContextSink = interface(IUnknown)
- ['{01689689-7ACB-4E9B-AB7C-7EA46B12B522}']
- function OnCleanupContext(ecWrite: TfEditCookie; const pic: ITfContext): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCleanupContextDurationSink
- // Flags: (0)
- // GUID: {45C35144-154E-4797-BED8-D33AE7BF8794}
- // *********************************************************************//
- ITfCleanupContextDurationSink = interface(IUnknown)
- ['{45C35144-154E-4797-BED8-D33AE7BF8794}']
- function OnStartCleanupContext: HResult; stdcall;
- function OnEndCleanupContext: HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfPropertyValue
- // Flags: (0)
- // GUID: {8ED8981B-7C10-4D7D-9FB3-AB72E9C75F72}
- // *********************************************************************//
- IEnumTfPropertyValue = interface(IUnknown)
- ['{8ED8981B-7C10-4D7D-9FB3-AB72E9C75F72}']
- function Clone(out ppenum: IEnumTfPropertyValue): HResult; stdcall;
- function Next(ulCount: LongWord; out rgValues: TF_PROPERTYVAL; out pcFetched: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfMouseTracker
- // Flags: (0)
- // GUID: {09D146CD-A544-4132-925B-7AFA8EF322D0}
- // *********************************************************************//
- ITfMouseTracker = interface(IUnknown)
- ['{09D146CD-A544-4132-925B-7AFA8EF322D0}']
- function AdviseMouseSink(const range: ITfRange; const pSink: ITfMouseSink;
- out pdwCookie: LongWord): HResult; stdcall;
- function UnadviseMouseSink(dwCookie: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfMouseTrackerACP
- // Flags: (0)
- // GUID: {3BDD78E2-C16E-47FD-B883-CE6FACC1A208}
- // *********************************************************************//
- ITfMouseTrackerACP = interface(IUnknown)
- ['{3BDD78E2-C16E-47FD-B883-CE6FACC1A208}']
- function AdviseMouseSink(const range: ITfRangeACP; const pSink: ITfMouseSink;
- out pdwCookie: LongWord): HResult; stdcall;
- function UnadviseMouseSink(dwCookie: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfEditRecord
- // Flags: (0)
- // GUID: {42D4D099-7C1A-4A89-B836-6C6F22160DF0}
- // *********************************************************************//
- ITfEditRecord = interface(IUnknown)
- ['{42D4D099-7C1A-4A89-B836-6C6F22160DF0}']
- function GetSelectionStatus(out pfChanged: Integer): HResult; stdcall;
- function GetTextAndPropertyUpdates(dwFlags: LongWord; prgProperties: PPUserType1;
- cProperties: LongWord; out ppenum: IEnumTfRanges): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfTextEditSink
- // Flags: (0)
- // GUID: {8127D409-CCD3-4683-967A-B43D5B482BF7}
- // *********************************************************************//
- ITfTextEditSink = interface(IUnknown)
- ['{8127D409-CCD3-4683-967A-B43D5B482BF7}']
- function OnEndEdit(const pic: ITfContext; ecReadOnly: TfEditCookie;
- const pEditRecord: ITfEditRecord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfTextLayoutSink
- // Flags: (0)
- // GUID: {2AF2D06A-DD5B-4927-A0B4-54F19C91FADE}
- // *********************************************************************//
- ITfTextLayoutSink = interface(IUnknown)
- ['{2AF2D06A-DD5B-4927-A0B4-54F19C91FADE}']
- function OnLayoutChange(const pic: ITfContext; lcode: TfLayoutCode; const pView: ITfContextView): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfStatusSink
- // Flags: (0)
- // GUID: {6B7D8D73-B267-4F69-B32E-1CA321CE4F45}
- // *********************************************************************//
- ITfStatusSink = interface(IUnknown)
- ['{6B7D8D73-B267-4F69-B32E-1CA321CE4F45}']
- function OnStatusChange(const pic: ITfContext; dwFlags: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfEditTransactionSink
- // Flags: (0)
- // GUID: {708FBF70-B520-416B-B06C-2C41AB44F8BA}
- // *********************************************************************//
- ITfEditTransactionSink = interface(IUnknown)
- ['{708FBF70-B520-416B-B06C-2C41AB44F8BA}']
- function OnStartEditTransaction(const pic: ITfContext): HResult; stdcall;
- function OnEndEditTransaction(const pic: ITfContext): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfContextOwner
- // Flags: (0)
- // GUID: {AA80E80C-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfContextOwner = interface(IUnknown)
- ['{AA80E80C-2021-11D2-93E0-0060B067B86E}']
- function GetACPFromPoint(var ptScreen: tagPOINT; dwFlags: LongWord; out pacp: Integer): HResult; stdcall;
- function GetTextExt(acpStart: Integer; acpEnd: Integer; out prc: tagRECT; out pfClipped: Integer): HResult; stdcall;
- function GetScreenExt(out prc: tagRECT): HResult; stdcall;
- function GetStatus(out pdcs: TF_STATUS): HResult; stdcall;
- function GetWnd(out phwnd: wireHWND): HResult; stdcall;
- function GetAttribute(var rguidAttribute: GUID; out pvarValue: OleVariant): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfContextOwnerServices
- // Flags: (0)
- // GUID: {B23EB630-3E1C-11D3-A745-0050040AB407}
- // *********************************************************************//
- ITfContextOwnerServices = interface(IUnknown)
- ['{B23EB630-3E1C-11D3-A745-0050040AB407}']
- function OnLayoutChange: HResult; stdcall;
- function OnStatusChange(dwFlags: LongWord): HResult; stdcall;
- function OnAttributeChange(var rguidAttribute: GUID): HResult; stdcall;
- function Serialize(const pProp: ITfProperty; const pRange: ITfRange;
- out pHdr: TF_PERSISTENT_PROPERTY_HEADER_ACP; const pStream: IStream): HResult; stdcall;
- function Unserialize(const pProp: ITfProperty; var pHdr: TF_PERSISTENT_PROPERTY_HEADER_ACP;
- const pStream: IStream; const pLoader: ITfPersistentPropertyLoaderACP): HResult; stdcall;
- function ForceLoadProperty(const pProp: ITfProperty): HResult; stdcall;
- function CreateRange(acpStart: Integer; acpEnd: Integer; out ppRange: ITfRangeACP): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfContextKeyEventSink
- // Flags: (0)
- // GUID: {0552BA5D-C835-4934-BF50-846AAA67432F}
- // *********************************************************************//
- ITfContextKeyEventSink = interface(IUnknown)
- ['{0552BA5D-C835-4934-BF50-846AAA67432F}']
- function OnKeyDown(wParam: UINT_PTR; lParam: LONG_PTR; out pfEaten: Integer): HResult; stdcall;
- function OnKeyUp(wParam: UINT_PTR; lParam: LONG_PTR; out pfEaten: Integer): HResult; stdcall;
- function OnTestKeyDown(wParam: UINT_PTR; lParam: LONG_PTR; out pfEaten: Integer): HResult; stdcall;
- function OnTestKeyUp(wParam: UINT_PTR; lParam: LONG_PTR; out pfEaten: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITextStoreACPServices
- // Flags: (0)
- // GUID: {AA80E901-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITextStoreACPServices = interface(IUnknown)
- ['{AA80E901-2021-11D2-93E0-0060B067B86E}']
- function Serialize(const pProp: ITfProperty; const pRange: ITfRange;
- out pHdr: TF_PERSISTENT_PROPERTY_HEADER_ACP; const pStream: IStream): HResult; stdcall;
- function Unserialize(const pProp: ITfProperty; var pHdr: TF_PERSISTENT_PROPERTY_HEADER_ACP;
- const pStream: IStream; const pLoader: ITfPersistentPropertyLoaderACP): HResult; stdcall;
- function ForceLoadProperty(const pProp: ITfProperty): HResult; stdcall;
- function CreateRange(acpStart: Integer; acpEnd: Integer; out ppRange: ITfRangeACP): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCreatePropertyStore
- // Flags: (0)
- // GUID: {2463FBF0-B0AF-11D2-AFC5-00105A2799B5}
- // *********************************************************************//
- ITfCreatePropertyStore = interface(IUnknown)
- ['{2463FBF0-B0AF-11D2-AFC5-00105A2799B5}']
- function IsStoreSerializable(var guidProp: GUID; const pRange: ITfRange;
- const pPropStore: ITfPropertyStore; out pfSerializable: Integer): HResult; stdcall;
- function CreatePropertyStore(var guidProp: GUID; const pRange: ITfRange; cb: LongWord;
- const pStream: IStream; out ppStore: ITfPropertyStore): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCompartmentEventSink
- // Flags: (0)
- // GUID: {743ABD5F-F26D-48DF-8CC5-238492419B64}
- // *********************************************************************//
- ITfCompartmentEventSink = interface(IUnknown)
- ['{743ABD5F-F26D-48DF-8CC5-238492419B64}']
- function OnChange(var rguid: GUID): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfFunction
- // Flags: (0)
- // GUID: {DB593490-098F-11D3-8DF0-00105A2799B5}
- // *********************************************************************//
- ITfFunction = interface(IUnknown)
- ['{DB593490-098F-11D3-8DF0-00105A2799B5}']
- function GetDisplayName(out pbstrName: WideString): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfInputProcessorProfiles
- // Flags: (0)
- // GUID: {1F02B6C5-7842-4EE6-8A0B-9A24183A95CA}
- // *********************************************************************//
- ITfInputProcessorProfiles = interface(IUnknown)
- ['{1F02B6C5-7842-4EE6-8A0B-9A24183A95CA}']
- function Register(var rclsid: GUID): HResult; stdcall;
- function Unregister(var rclsid: GUID): HResult; stdcall;
- function AddLanguageProfile(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- var pchDesc: Word; cchDesc: LongWord; var pchIconFile: Word;
- cchFile: LongWord; uIconIndex: LongWord): HResult; stdcall;
- function RemoveLanguageProfile(var rclsid: GUID; langid: Word; var guidProfile: GUID): HResult; stdcall;
- function EnumInputProcessorInfo(out ppenum: IEnumGUID): HResult; stdcall;
- function GetDefaultLanguageProfile(langid: Word; var catid: GUID; out pclsid: GUID;
- out pguidProfile: GUID): HResult; stdcall;
- function SetDefaultLanguageProfile(langid: Word; var rclsid: GUID; var guidProfiles: GUID): HResult; stdcall;
- function ActivateLanguageProfile(var rclsid: GUID; langid: Word; var guidProfiles: GUID): HResult; stdcall;
- function GetActiveLanguageProfile(var rclsid: GUID; out plangid: Word; out pguidProfile: GUID): HResult; stdcall;
- function GetLanguageProfileDescription(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- out pbstrProfile: WideString): HResult; stdcall;
- function GetCurrentLanguage(out plangid: Word): HResult; stdcall;
- function ChangeCurrentLanguage(langid: Word): HResult; stdcall;
- function GetLanguageList(out ppLangId: PWord1; out pulCount: LongWord): HResult; stdcall;
- function EnumLanguageProfiles(langid: Word; out ppenum: IEnumTfLanguageProfiles): HResult; stdcall;
- function EnableLanguageProfile(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- fEnable: Integer): HResult; stdcall;
- function IsEnabledLanguageProfile(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- out pfEnable: Integer): HResult; stdcall;
- function EnableLanguageProfileByDefault(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- fEnable: Integer): HResult; stdcall;
- function SubstituteKeyboardLayout(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- HKL: HKL): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfInputProcessorProfilesEx
- // Flags: (0)
- // GUID: {892F230F-FE00-4A41-A98E-FCD6DE0D35EF}
- // *********************************************************************//
- ITfInputProcessorProfilesEx = interface(ITfInputProcessorProfiles)
- ['{892F230F-FE00-4A41-A98E-FCD6DE0D35EF}']
- function SetLanguageProfileDisplayName(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- var pchFile: Word; cchFile: LongWord; uResId: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfInputProcessorProfileSubstituteLayout
- // Flags: (0)
- // GUID: {4FD67194-1002-4513-BFF2-C0DDF6258552}
- // *********************************************************************//
- ITfInputProcessorProfileSubstituteLayout = interface(IUnknown)
- ['{4FD67194-1002-4513-BFF2-C0DDF6258552}']
- function GetSubstituteKeyboardLayout(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- out phKL: HKL): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfActiveLanguageProfileNotifySink
- // Flags: (0)
- // GUID: {B246CB75-A93E-4652-BF8C-B3FE0CFD7E57}
- // *********************************************************************//
- ITfActiveLanguageProfileNotifySink = interface(IUnknown)
- ['{B246CB75-A93E-4652-BF8C-B3FE0CFD7E57}']
- function OnActivated(var clsid: GUID; var guidProfile: GUID; fActivated: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfLanguageProfileNotifySink
- // Flags: (0)
- // GUID: {43C9FE15-F494-4C17-9DE2-B8A4AC350AA8}
- // *********************************************************************//
- ITfLanguageProfileNotifySink = interface(IUnknown)
- ['{43C9FE15-F494-4C17-9DE2-B8A4AC350AA8}']
- function OnLanguageChange(langid: Word; out pfAccept: Integer): HResult; stdcall;
- function OnLanguageChanged: HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfInputProcessorProfileMgr
- // Flags: (0)
- // GUID: {71C6E74C-0F28-11D8-A82A-00065B84435C}
- // *********************************************************************//
- ITfInputProcessorProfileMgr = interface(IUnknown)
- ['{71C6E74C-0F28-11D8-A82A-00065B84435C}']
- function ActivateProfile(dwProfileType: LongWord; langid: Word; var clsid: GUID;
- var guidProfile: GUID; HKL: HKL; dwFlags: LongWord): HResult; stdcall;
- function DeactivateProfile(dwProfileType: LongWord; langid: Word; var clsid: GUID;
- var guidProfile: GUID; HKL: HKL; dwFlags: LongWord): HResult; stdcall;
- function GetProfile(dwProfileType: LongWord; langid: Word; var clsid: GUID;
- var guidProfile: GUID; HKL: HKL; out pProfile: TF_INPUTPROCESSORPROFILE): HResult; stdcall;
- function EnumProfiles(langid: Word; out ppenum: IEnumTfInputProcessorProfiles): HResult; stdcall;
- function ReleaseInputProcessor(var rclsid: GUID; dwFlags: LongWord): HResult; stdcall;
- function RegisterProfile(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- var pchDesc: Word; cchDesc: LongWord; var pchIconFile: Word;
- cchFile: LongWord; uIconIndex: LongWord; hklSubstitute: HKL;
- dwPreferredLayout: LongWord; bEnabledByDefault: Integer;
- dwFlags: LongWord): HResult; stdcall;
- function UnregisterProfile(var rclsid: GUID; langid: Word; var guidProfile: GUID;
- dwFlags: LongWord): HResult; stdcall;
- function GetActiveProfile(var catid: GUID; out pProfile: TF_INPUTPROCESSORPROFILE): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfInputProcessorProfileActivationSink
- // Flags: (0)
- // GUID: {71C6E74E-0F28-11D8-A82A-00065B84435C}
- // *********************************************************************//
- ITfInputProcessorProfileActivationSink = interface(IUnknown)
- ['{71C6E74E-0F28-11D8-A82A-00065B84435C}']
- function OnActivated(dwProfileType: LongWord; langid: Word; var clsid: GUID; var catid: GUID;
- var guidProfile: GUID; HKL: HKL; dwFlags: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfKeystrokeMgr
- // Flags: (0)
- // GUID: {AA80E7F0-2021-11D2-93E0-0060B067B86E}
- // *********************************************************************//
- ITfKeystrokeMgr = interface(IUnknown)
- ['{AA80E7F0-2021-11D2-93E0-0060B067B86E}']
- function AdviseKeyEventSink(tid: TfClientId; const pSink: ITfKeyEventSink; fForeground: Integer): HResult; stdcall;
- function UnadviseKeyEventSink(tid: TfClientId): HResult; stdcall;
- function GetForeground(out pclsid: GUID): HResult; stdcall;
- function TestKeyDown(wParam: UINT_PTR; lParam: LONG_PTR; out pfEaten: Integer): HResult; stdcall;
- function TestKeyUp(wParam: UINT_PTR; lParam: LONG_PTR; out pfEaten: Integer): HResult; stdcall;
- function KeyDown(wParam: UINT_PTR; lParam: LONG_PTR; out pfEaten: Integer): HResult; stdcall;
- function KeyUp(wParam: UINT_PTR; lParam: LONG_PTR; out pfEaten: Integer): HResult; stdcall;
- function GetPreservedKey(const pic: ITfContext; var pprekey: TF_PRESERVEDKEY; out pguid: GUID): HResult; stdcall;
- function IsPreservedKey(var rguid: GUID; var pprekey: TF_PRESERVEDKEY; out pfRegistered: Integer): HResult; stdcall;
- function PreserveKey(tid: TfClientId; var rguid: GUID; var prekey: TF_PRESERVEDKEY;
- var pchDesc: Word; cchDesc: LongWord): HResult; stdcall;
- function UnpreserveKey(var rguid: GUID; var pprekey: TF_PRESERVEDKEY): HResult; stdcall;
- function SetPreservedKeyDescription(var rguid: GUID; var pchDesc: Word; cchDesc: LongWord): HResult; stdcall;
- function GetPreservedKeyDescription(var rguid: GUID; out pbstrDesc: WideString): HResult; stdcall;
- function SimulatePreservedKey(const pic: ITfContext; var rguid: GUID; out pfEaten: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfKeyTraceEventSink
- // Flags: (0)
- // GUID: {1CD4C13B-1C36-4191-A70A-7F3E611F367D}
- // *********************************************************************//
- ITfKeyTraceEventSink = interface(IUnknown)
- ['{1CD4C13B-1C36-4191-A70A-7F3E611F367D}']
- function OnKeyTraceDown(wParam: UINT_PTR; lParam: LONG_PTR): HResult; stdcall;
- function OnKeyTraceUp(wParam: UINT_PTR; lParam: LONG_PTR): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfPreservedKeyNotifySink
- // Flags: (0)
- // GUID: {6F77C993-D2B1-446E-853E-5912EFC8A286}
- // *********************************************************************//
- ITfPreservedKeyNotifySink = interface(IUnknown)
- ['{6F77C993-D2B1-446E-853E-5912EFC8A286}']
- function OnUpdated(var pprekey: TF_PRESERVEDKEY): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfMessagePump
- // Flags: (0)
- // GUID: {8F1B8AD8-0B6B-4874-90C5-BD76011E8F7C}
- // *********************************************************************//
- ITfMessagePump = interface(IUnknown)
- ['{8F1B8AD8-0B6B-4874-90C5-BD76011E8F7C}']
- function PeekMessageA(out pMsg: tagMSG; var hwnd: _RemotableHandle; wMsgFilterMin: SYSUINT;
- wMsgFilterMax: SYSUINT; wRemoveMsg: SYSUINT; out pfResult: Integer): HResult; stdcall;
- function GetMessageA(out pMsg: tagMSG; var hwnd: _RemotableHandle; wMsgFilterMin: SYSUINT;
- wMsgFilterMax: SYSUINT; out pfResult: Integer): HResult; stdcall;
- function PeekMessageW(out pMsg: tagMSG; var hwnd: _RemotableHandle; wMsgFilterMin: SYSUINT;
- wMsgFilterMax: SYSUINT; wRemoveMsg: SYSUINT; out pfResult: Integer): HResult; stdcall;
- function GetMessageW(out pMsg: tagMSG; var hwnd: _RemotableHandle; wMsgFilterMin: SYSUINT;
- wMsgFilterMax: SYSUINT; out pfResult: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfThreadFocusSink
- // Flags: (0)
- // GUID: {C0F1DB0C-3A20-405C-A303-96B6010A885F}
- // *********************************************************************//
- ITfThreadFocusSink = interface(IUnknown)
- ['{C0F1DB0C-3A20-405C-A303-96B6010A885F}']
- function OnSetThreadFocus: HResult; stdcall;
- function OnKillThreadFocus: HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfTextInputProcessorEx
- // Flags: (0)
- // GUID: {6E4E2102-F9CD-433D-B496-303CE03A6507}
- // *********************************************************************//
- ITfTextInputProcessorEx = interface(ITfTextInputProcessor)
- ['{6E4E2102-F9CD-433D-B496-303CE03A6507}']
- function ActivateEx(const ptim: ITfThreadMgr; tid: TfClientId; dwFlags: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfClientId
- // Flags: (0)
- // GUID: {D60A7B49-1B9F-4BE2-B702-47E9DC05DEC3}
- // *********************************************************************//
- ITfClientId = interface(IUnknown)
- ['{D60A7B49-1B9F-4BE2-B702-47E9DC05DEC3}']
- function GetClientId(var rclsid: GUID; out ptid: TfClientId): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfDisplayAttributeInfo
- // Flags: (0)
- // GUID: {70528852-2F26-4AEA-8C96-215150578932}
- // *********************************************************************//
- ITfDisplayAttributeInfo = interface(IUnknown)
- ['{70528852-2F26-4AEA-8C96-215150578932}']
- function GetGUID(out pguid: GUID): HResult; stdcall;
- function GetDescription(out pbstrDesc: WideString): HResult; stdcall;
- function GetAttributeInfo(out pda: TF_DISPLAYATTRIBUTE): HResult; stdcall;
- function SetAttributeInfo(var pda: TF_DISPLAYATTRIBUTE): HResult; stdcall;
- function Reset: HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: IEnumTfDisplayAttributeInfo
- // Flags: (0)
- // GUID: {7CEF04D7-CB75-4E80-A7AB-5F5BC7D332DE}
- // *********************************************************************//
- IEnumTfDisplayAttributeInfo = interface(IUnknown)
- ['{7CEF04D7-CB75-4E80-A7AB-5F5BC7D332DE}']
- function Clone(out ppenum: IEnumTfDisplayAttributeInfo): HResult; stdcall;
- function Next(ulCount: LongWord; out rgInfo: ITfDisplayAttributeInfo; out pcFetched: LongWord): HResult; stdcall;
- function Reset: HResult; stdcall;
- function Skip(ulCount: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfDisplayAttributeProvider
- // Flags: (0)
- // GUID: {FEE47777-163C-4769-996A-6E9C50AD8F54}
- // *********************************************************************//
- ITfDisplayAttributeProvider = interface(IUnknown)
- ['{FEE47777-163C-4769-996A-6E9C50AD8F54}']
- function EnumDisplayAttributeInfo(out ppenum: IEnumTfDisplayAttributeInfo): HResult; stdcall;
- function GetDisplayAttributeInfo(var GUID: GUID; out ppInfo: ITfDisplayAttributeInfo): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfDisplayAttributeMgr
- // Flags: (0)
- // GUID: {8DED7393-5DB1-475C-9E71-A39111B0FF67}
- // *********************************************************************//
- ITfDisplayAttributeMgr = interface(IUnknown)
- ['{8DED7393-5DB1-475C-9E71-A39111B0FF67}']
- function OnUpdateInfo: HResult; stdcall;
- function EnumDisplayAttributeInfo(out ppenum: IEnumTfDisplayAttributeInfo): HResult; stdcall;
- function GetDisplayAttributeInfo(var GUID: GUID; out ppInfo: ITfDisplayAttributeInfo;
- out pclsidOwner: GUID): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfDisplayAttributeNotifySink
- // Flags: (0)
- // GUID: {AD56F402-E162-4F25-908F-7D577CF9BDA9}
- // *********************************************************************//
- ITfDisplayAttributeNotifySink = interface(IUnknown)
- ['{AD56F402-E162-4F25-908F-7D577CF9BDA9}']
- function OnUpdateInfo: HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCategoryMgr
- // Flags: (0)
- // GUID: {C3ACEFB5-F69D-4905-938F-FCADCF4BE830}
- // *********************************************************************//
- ITfCategoryMgr = interface(IUnknown)
- ['{C3ACEFB5-F69D-4905-938F-FCADCF4BE830}']
- function RegisterCategory(var rclsid: GUID; var rcatid: GUID; var rguid: GUID): HResult; stdcall;
- function UnregisterCategory(var rclsid: GUID; var rcatid: GUID; var rguid: GUID): HResult; stdcall;
- function EnumCategoriesInItem(var rguid: GUID; out ppenum: IEnumGUID): HResult; stdcall;
- function EnumItemsInCategory(var rcatid: GUID; out ppenum: IEnumGUID): HResult; stdcall;
- function FindClosestCategory(var rguid: GUID; out pcatid: GUID; ppcatidList: PPUserType1;
- ulCount: LongWord): HResult; stdcall;
- function RegisterGUIDDescription(var rclsid: GUID; var rguid: GUID; var pchDesc: Word;
- cch: LongWord): HResult; stdcall;
- function UnregisterGUIDDescription(var rclsid: GUID; var rguid: GUID): HResult; stdcall;
- function GetGUIDDescription(var rguid: GUID; out pbstrDesc: WideString): HResult; stdcall;
- function RegisterGUIDDWORD(var rclsid: GUID; var rguid: GUID; dw: LongWord): HResult; stdcall;
- function UnregisterGUIDDWORD(var rclsid: GUID; var rguid: GUID): HResult; stdcall;
- function GetGUIDDWORD(var rguid: GUID; out pdw: LongWord): HResult; stdcall;
- function RegisterGUID(var rguid: GUID; out pguidatom: TfGuidAtom): HResult; stdcall;
- function GetGUID(guidatom: TfGuidAtom; out pguid: GUID): HResult; stdcall;
- function IsEqualTfGuidAtom(guidatom: TfGuidAtom; var rguid: GUID; out pfEqual: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfSourceSingle
- // Flags: (0)
- // GUID: {73131F9C-56A9-49DD-B0EE-D046633F7528}
- // *********************************************************************//
- ITfSourceSingle = interface(IUnknown)
- ['{73131F9C-56A9-49DD-B0EE-D046633F7528}']
- function AdviseSingleSink(tid: TfClientId; var riid: GUID; const punk: IUnknown): HResult; stdcall;
- function UnadviseSingleSink(tid: TfClientId; var riid: GUID): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfUIElementMgr
- // Flags: (0)
- // GUID: {EA1EA135-19DF-11D7-A6D2-00065B84435C}
- // *********************************************************************//
- ITfUIElementMgr = interface(IUnknown)
- ['{EA1EA135-19DF-11D7-A6D2-00065B84435C}']
- function BeginUIElement(const pElement: ITfUIElement; var pbShow: Integer;
- out pdwUIElementId: LongWord): HResult; stdcall;
- function UpdateUIElement(dwUIElementId: LongWord): HResult; stdcall;
- function EndUIElement(dwUIElementId: LongWord): HResult; stdcall;
- function GetUIElement(dwUIElementId: LongWord; out ppElement: ITfUIElement): HResult; stdcall;
- function EnumUIElements(out ppenum: IEnumTfUIElements): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfUIElementSink
- // Flags: (0)
- // GUID: {EA1EA136-19DF-11D7-A6D2-00065B84435C}
- // *********************************************************************//
- ITfUIElementSink = interface(IUnknown)
- ['{EA1EA136-19DF-11D7-A6D2-00065B84435C}']
- function BeginUIElement(dwUIElementId: LongWord; var pbShow: Integer): HResult; stdcall;
- function UpdateUIElement(dwUIElementId: LongWord): HResult; stdcall;
- function EndUIElement(dwUIElementId: LongWord): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCandidateListUIElement
- // Flags: (0)
- // GUID: {EA1EA138-19DF-11D7-A6D2-00065B84435C}
- // *********************************************************************//
- ITfCandidateListUIElement = interface(ITfUIElement)
- ['{EA1EA138-19DF-11D7-A6D2-00065B84435C}']
- function GetUpdatedFlags(out pdwFlags: LongWord): HResult; stdcall;
- function GetDocumentMgr(out ppdim: ITfDocumentMgr): HResult; stdcall;
- function GetCount(out puCount: SYSUINT): HResult; stdcall;
- function GetSelection(out puIndex: SYSUINT): HResult; stdcall;
- function GetString(uIndex: SYSUINT; out pstr: WideString): HResult; stdcall;
- function GetPageIndex(out pIndex: SYSUINT; uSize: SYSUINT; out puPageCnt: SYSUINT): HResult; stdcall;
- function SetPageIndex(var pIndex: SYSUINT; uPageCnt: SYSUINT): HResult; stdcall;
- function GetCurrentPage(out puPage: SYSUINT): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfCandidateListUIElementBehavior
- // Flags: (0)
- // GUID: {85FAD185-58CE-497A-9460-355366B64B9A}
- // *********************************************************************//
- ITfCandidateListUIElementBehavior = interface(ITfCandidateListUIElement)
- ['{85FAD185-58CE-497A-9460-355366B64B9A}']
- function SetSelection(nIndex: SYSUINT): HResult; stdcall;
- function Finalize: HResult; stdcall;
- function Abort: HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfReadingInformationUIElement
- // Flags: (0)
- // GUID: {EA1EA139-19DF-11D7-A6D2-00065B84435C}
- // *********************************************************************//
- ITfReadingInformationUIElement = interface(ITfUIElement)
- ['{EA1EA139-19DF-11D7-A6D2-00065B84435C}']
- function GetUpdatedFlags(out pdwFlags: LongWord): HResult; stdcall;
- function GetContext(out ppic: ITfContext): HResult; stdcall;
- function GetString(out pstr: WideString): HResult; stdcall;
- function GetMaxReadingStringLength(out pcchMax: SYSUINT): HResult; stdcall;
- function GetErrorIndex(out pErrorIndex: SYSUINT): HResult; stdcall;
- function IsVerticalOrderPreferred(out pfVertical: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfTransitoryExtensionUIElement
- // Flags: (0)
- // GUID: {858F956A-972F-42A2-A2F2-0321E1ABE209}
- // *********************************************************************//
- ITfTransitoryExtensionUIElement = interface(ITfUIElement)
- ['{858F956A-972F-42A2-A2F2-0321E1ABE209}']
- function GetDocumentMgr(out ppdim: ITfDocumentMgr): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfTransitoryExtensionSink
- // Flags: (0)
- // GUID: {A615096F-1C57-4813-8A15-55EE6E5A839C}
- // *********************************************************************//
- ITfTransitoryExtensionSink = interface(IUnknown)
- ['{A615096F-1C57-4813-8A15-55EE6E5A839C}']
- function OnTransitoryExtensionUpdated(const pic: ITfContext; ecReadOnly: TfEditCookie;
- const pResultRange: ITfRange;
- const pCompositionRange: ITfRange;
- out pfDeleteResultRange: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfToolTipUIElement
- // Flags: (0)
- // GUID: {52B18B5C-555D-46B2-B00A-FA680144FBDB}
- // *********************************************************************//
- ITfToolTipUIElement = interface(ITfUIElement)
- ['{52B18B5C-555D-46B2-B00A-FA680144FBDB}']
- function GetString(out pstr: WideString): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfReverseConversionList
- // Flags: (0)
- // GUID: {151D69F0-86F4-4674-B721-56911E797F47}
- // *********************************************************************//
- ITfReverseConversionList = interface(IUnknown)
- ['{151D69F0-86F4-4674-B721-56911E797F47}']
- function GetLength(out puIndex: SYSUINT): HResult; stdcall;
- function GetString(uIndex: SYSUINT; out pbstr: WideString): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfReverseConversion
- // Flags: (0)
- // GUID: {A415E162-157D-417D-8A8C-0AB26C7D2781}
- // *********************************************************************//
- ITfReverseConversion = interface(IUnknown)
- ['{A415E162-157D-417D-8A8C-0AB26C7D2781}']
- function DoReverseConversion(lpstr: PWideChar; out ppList: ITfReverseConversionList): HResult; stdcall;
- end;
- // *********************************************************************//
- // Interface: ITfReverseConversionMgr
- // Flags: (0)
- // GUID: {B643C236-C493-41B6-ABB3-692412775CC4}
- // *********************************************************************//
- ITfReverseConversionMgr = interface(IUnknown)
- ['{B643C236-C493-41B6-ABB3-692412775CC4}']
- function GetReverseConversion(langid: Word; var guidProfile: GUID; dwflag: LongWord;
- out ppReverseConversion: ITfReverseConversion): HResult; stdcall;
- end;
- implementation
- uses System.Win.ComObj;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement