|
| DEFINE_GUID (CLSID_FakeService, 0xEDE1A7AD, 0x66DE, 0x47E0, 0xB6, 0x20, 0x3E, 0x92, 0xF8, 0x24, 0x6B, 0xF3) |
|
static int | expected_count (int *sink) |
|
static void | _sink_fire_ok (INT *sink, const CHAR *name) |
|
static void | _sink_check_ok (INT *sink, const CHAR *name) |
|
static void | _sink_check_saved (INT *sink, ITfDocumentMgr *PrevFocus, ITfDocumentMgr *CurrentFocus, const CHAR *name) |
|
static TextStoreACP * | impl_from_ITextStoreACP (ITextStoreACP *iface) |
|
static void | TextStoreACP_Destructor (TextStoreACP *This) |
|
static HRESULT WINAPI | TextStoreACP_QueryInterface (ITextStoreACP *iface, REFIID iid, LPVOID *ppvOut) |
|
static ULONG WINAPI | TextStoreACP_AddRef (ITextStoreACP *iface) |
|
static ULONG WINAPI | TextStoreACP_Release (ITextStoreACP *iface) |
|
static HRESULT WINAPI | TextStoreACP_AdviseSink (ITextStoreACP *iface, REFIID riid, IUnknown *punk, DWORD dwMask) |
|
static HRESULT WINAPI | TextStoreACP_UnadviseSink (ITextStoreACP *iface, IUnknown *punk) |
|
static HRESULT WINAPI | TextStoreACP_RequestLock (ITextStoreACP *iface, DWORD dwLockFlags, HRESULT *phrSession) |
|
static HRESULT WINAPI | TextStoreACP_GetStatus (ITextStoreACP *iface, TS_STATUS *pdcs) |
|
static HRESULT WINAPI | TextStoreACP_QueryInsert (ITextStoreACP *iface, LONG acpTestStart, LONG acpTestEnd, ULONG cch, LONG *pacpResultStart, LONG *pacpResultEnd) |
|
static HRESULT WINAPI | TextStoreACP_GetSelection (ITextStoreACP *iface, ULONG ulIndex, ULONG ulCount, TS_SELECTION_ACP *pSelection, ULONG *pcFetched) |
|
static HRESULT WINAPI | TextStoreACP_SetSelection (ITextStoreACP *iface, ULONG ulCount, const TS_SELECTION_ACP *pSelection) |
|
static HRESULT WINAPI | TextStoreACP_GetText (ITextStoreACP *iface, LONG acpStart, LONG acpEnd, WCHAR *pchPlain, ULONG cchPlainReq, ULONG *pcchPlainRet, TS_RUNINFO *prgRunInfo, ULONG cRunInfoReq, ULONG *pcRunInfoRet, LONG *pacpNext) |
|
static HRESULT WINAPI | TextStoreACP_SetText (ITextStoreACP *iface, DWORD dwFlags, LONG acpStart, LONG acpEnd, const WCHAR *pchText, ULONG cch, TS_TEXTCHANGE *pChange) |
|
static HRESULT WINAPI | TextStoreACP_GetFormattedText (ITextStoreACP *iface, LONG acpStart, LONG acpEnd, IDataObject **ppDataObject) |
|
static HRESULT WINAPI | TextStoreACP_GetEmbedded (ITextStoreACP *iface, LONG acpPos, REFGUID rguidService, REFIID riid, IUnknown **ppunk) |
|
static HRESULT WINAPI | TextStoreACP_QueryInsertEmbedded (ITextStoreACP *iface, const GUID *pguidService, const FORMATETC *pFormatEtc, BOOL *pfInsertable) |
|
static HRESULT WINAPI | TextStoreACP_InsertEmbedded (ITextStoreACP *iface, DWORD dwFlags, LONG acpStart, LONG acpEnd, IDataObject *pDataObject, TS_TEXTCHANGE *pChange) |
|
static HRESULT WINAPI | TextStoreACP_InsertTextAtSelection (ITextStoreACP *iface, DWORD dwFlags, const WCHAR *pchText, ULONG cch, LONG *pacpStart, LONG *pacpEnd, TS_TEXTCHANGE *pChange) |
|
static HRESULT WINAPI | TextStoreACP_InsertEmbeddedAtSelection (ITextStoreACP *iface, DWORD dwFlags, IDataObject *pDataObject, LONG *pacpStart, LONG *pacpEnd, TS_TEXTCHANGE *pChange) |
|
static HRESULT WINAPI | TextStoreACP_RequestSupportedAttrs (ITextStoreACP *iface, DWORD dwFlags, ULONG cFilterAttrs, const TS_ATTRID *paFilterAttrs) |
|
static HRESULT WINAPI | TextStoreACP_RequestAttrsAtPosition (ITextStoreACP *iface, LONG acpPos, ULONG cFilterAttrs, const TS_ATTRID *paFilterAttrs, DWORD dwFlags) |
|
static HRESULT WINAPI | TextStoreACP_RequestAttrsTransitioningAtPosition (ITextStoreACP *iface, LONG acpPos, ULONG cFilterAttrs, const TS_ATTRID *paFilterAttrs, DWORD dwFlags) |
|
static HRESULT WINAPI | TextStoreACP_FindNextAttrTransition (ITextStoreACP *iface, LONG acpStart, LONG acpHalt, ULONG cFilterAttrs, const TS_ATTRID *paFilterAttrs, DWORD dwFlags, LONG *pacpNext, BOOL *pfFound, LONG *plFoundOffset) |
|
static HRESULT WINAPI | TextStoreACP_RetrieveRequestedAttrs (ITextStoreACP *iface, ULONG ulCount, TS_ATTRVAL *paAttrVals, ULONG *pcFetched) |
|
static HRESULT WINAPI | TextStoreACP_GetEndACP (ITextStoreACP *iface, LONG *pacp) |
|
static HRESULT WINAPI | TextStoreACP_GetActiveView (ITextStoreACP *iface, TsViewCookie *pvcView) |
|
static HRESULT WINAPI | TextStoreACP_GetACPFromPoint (ITextStoreACP *iface, TsViewCookie vcView, const POINT *ptScreen, DWORD dwFlags, LONG *pacp) |
|
static HRESULT WINAPI | TextStoreACP_GetTextExt (ITextStoreACP *iface, TsViewCookie vcView, LONG acpStart, LONG acpEnd, RECT *prc, BOOL *pfClipped) |
|
static HRESULT WINAPI | TextStoreACP_GetScreenExt (ITextStoreACP *iface, TsViewCookie vcView, RECT *prc) |
|
static HRESULT WINAPI | TextStoreACP_GetWnd (ITextStoreACP *iface, TsViewCookie vcView, HWND *phwnd) |
|
static HRESULT | TextStoreACP_Constructor (IUnknown **ppOut) |
|
static ThreadMgrEventSink * | impl_from_ITfThreadMgrEventSink (ITfThreadMgrEventSink *iface) |
|
static void | ThreadMgrEventSink_Destructor (ThreadMgrEventSink *This) |
|
static HRESULT WINAPI | ThreadMgrEventSink_QueryInterface (ITfThreadMgrEventSink *iface, REFIID iid, LPVOID *ppvOut) |
|
static ULONG WINAPI | ThreadMgrEventSink_AddRef (ITfThreadMgrEventSink *iface) |
|
static ULONG WINAPI | ThreadMgrEventSink_Release (ITfThreadMgrEventSink *iface) |
|
static HRESULT WINAPI | ThreadMgrEventSink_OnInitDocumentMgr (ITfThreadMgrEventSink *iface, ITfDocumentMgr *pdim) |
|
static HRESULT WINAPI | ThreadMgrEventSink_OnUninitDocumentMgr (ITfThreadMgrEventSink *iface, ITfDocumentMgr *pdim) |
|
static HRESULT WINAPI | ThreadMgrEventSink_OnSetFocus (ITfThreadMgrEventSink *iface, ITfDocumentMgr *pdimFocus, ITfDocumentMgr *pdimPrevFocus) |
|
static HRESULT WINAPI | ThreadMgrEventSink_OnPushContext (ITfThreadMgrEventSink *iface, ITfContext *pic) |
|
static HRESULT WINAPI | ThreadMgrEventSink_OnPopContext (ITfThreadMgrEventSink *iface, ITfContext *pic) |
|
static HRESULT | ThreadMgrEventSink_Constructor (IUnknown **ppOut) |
|
static HRESULT WINAPI | TfKeyTraceEventSink_QueryInterface (ITfKeyTraceEventSink *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | TfKeyTraceEventSink_AddRef (ITfKeyTraceEventSink *iface) |
|
static ULONG WINAPI | TfKeyTraceEventSink_Release (ITfKeyTraceEventSink *iface) |
|
static HRESULT WINAPI | TfKeyTraceEventSink_OnKeyTraceDown (ITfKeyTraceEventSink *iface, WPARAM wparam, LPARAM lparam) |
|
static HRESULT WINAPI | TfKeyTraceEventSink_OnKeyTraceUp (ITfKeyTraceEventSink *iface, WPARAM wparam, LPARAM lparam) |
|
static HRESULT WINAPI | TfUIElementSink_QueryInterface (ITfUIElementSink *iface, REFIID riid, void **ppvObject) |
|
static ULONG WINAPI | TfUIElementSink_AddRef (ITfUIElementSink *iface) |
|
static ULONG WINAPI | TfUIElementSink_Release (ITfUIElementSink *iface) |
|
static HRESULT WINAPI | TfUIElementSink_BeginUIElement (ITfUIElementSink *iface, DWORD id, BOOL *show) |
|
static HRESULT WINAPI | TfUIElementSink_UpdateUIElement (ITfUIElementSink *iface, DWORD id) |
|
static HRESULT WINAPI | TfUIElementSink_EndUIElement (ITfUIElementSink *iface, DWORD id) |
|
static HRESULT WINAPI | ProfileActivationSink_QueryInterface (ITfInputProcessorProfileActivationSink *iface, REFIID riid, void **ppvObject) |
|
static ULONG WINAPI | ProfileActivationSink_AddRef (ITfInputProcessorProfileActivationSink *iface) |
|
static ULONG WINAPI | ProfileActivationSink_Release (ITfInputProcessorProfileActivationSink *iface) |
|
static HRESULT WINAPI | ProfileActivationSink_OnActivated (ITfInputProcessorProfileActivationSink *iface, DWORD dwProfileType, LANGID langid, REFCLSID clsid, REFGUID catid, REFGUID guidProfile, HKL hkl, DWORD dwFlags) |
|
static HRESULT WINAPI | TfTransitoryExtensionSink_QueryInterface (ITfTransitoryExtensionSink *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | TfTransitoryExtensionSink_AddRef (ITfTransitoryExtensionSink *iface) |
|
static ULONG WINAPI | TfTransitoryExtensionSink_Release (ITfTransitoryExtensionSink *iface) |
|
static HRESULT WINAPI | TfTransitoryExtensionSink_OnTransitoryExtensionUpdated (ITfTransitoryExtensionSink *iface, ITfContext *pic, TfEditCookie ecReadOnly, ITfRange *pResultRange, ITfRange *pCompositionRange, BOOL *pfDeleteResultRange) |
|
static ClassFactory * | impl_from_IClassFactory (IClassFactory *iface) |
|
static TextService * | impl_from_ITfTextInputProcessor (ITfTextInputProcessor *iface) |
|
static void | ClassFactory_Destructor (ClassFactory *This) |
|
static HRESULT WINAPI | ClassFactory_QueryInterface (IClassFactory *iface, REFIID riid, LPVOID *ppvOut) |
|
static ULONG WINAPI | ClassFactory_AddRef (IClassFactory *iface) |
|
static ULONG WINAPI | ClassFactory_Release (IClassFactory *iface) |
|
static HRESULT WINAPI | ClassFactory_CreateInstance (IClassFactory *iface, IUnknown *punkOuter, REFIID iid, LPVOID *ppvOut) |
|
static HRESULT WINAPI | ClassFactory_LockServer (IClassFactory *iface, BOOL fLock) |
|
static HRESULT | ClassFactory_Constructor (LPFNCONSTRUCTOR ctor, LPVOID *ppvOut) |
|
static void | TextService_Destructor (TextService *This) |
|
static HRESULT WINAPI | TextService_QueryInterface (ITfTextInputProcessor *iface, REFIID iid, LPVOID *ppvOut) |
|
static ULONG WINAPI | TextService_AddRef (ITfTextInputProcessor *iface) |
|
static ULONG WINAPI | TextService_Release (ITfTextInputProcessor *iface) |
|
static HRESULT WINAPI | TextService_Activate (ITfTextInputProcessor *iface, ITfThreadMgr *ptim, TfClientId id) |
|
static HRESULT WINAPI | TextService_Deactivate (ITfTextInputProcessor *iface) |
|
static HRESULT | TextService_Constructor (IUnknown *pUnkOuter, IUnknown **ppOut) |
|
static HRESULT | RegisterTextService (REFCLSID rclsid) |
|
static HRESULT | UnregisterTextService (void) |
|
| DEFINE_GUID (CLSID_TF_InputProcessorProfiles, 0x33c53a50, 0xf456, 0x4884, 0xb0, 0x49, 0x85, 0xfd, 0x64, 0x3e, 0xcf, 0xed) |
|
| DEFINE_GUID (CLSID_TF_CategoryMgr, 0xA4B544A1, 0x438D, 0x4B41, 0x93, 0x25, 0x86, 0x95, 0x23, 0xE2, 0xD6, 0xC7) |
|
| DEFINE_GUID (GUID_TFCAT_TIP_KEYBOARD, 0x34745c63, 0xb2f0, 0x4784, 0x8b, 0x67, 0x5e, 0x12, 0xc8, 0x70, 0x1a, 0x31) |
|
| DEFINE_GUID (GUID_TFCAT_TIP_SPEECH, 0xB5A73CD1, 0x8355, 0x426B, 0xA1, 0x61, 0x25, 0x98, 0x08, 0xF2, 0x6B, 0x14) |
|
| DEFINE_GUID (GUID_TFCAT_TIP_HANDWRITING, 0x246ecb87, 0xc2f2, 0x4abe, 0x90, 0x5b, 0xc8, 0xb3, 0x8a, 0xdd, 0x2c, 0x43) |
|
| DEFINE_GUID (GUID_TFCAT_DISPLAYATTRIBUTEPROVIDER, 0x046B8C80, 0x1647, 0x40F7, 0x9B, 0x21, 0xB9, 0x3B, 0x81, 0xAA, 0xBC, 0x1B) |
|
| DEFINE_GUID (GUID_NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) |
|
| DEFINE_GUID (CLSID_TF_ThreadMgr, 0x529a9e6b, 0x6587, 0x4f23, 0xab, 0x9e, 0x9c, 0x7d, 0x68, 0x3e, 0x3c, 0x50) |
|
| DEFINE_GUID (CLSID_PreservedKey, 0xA0ED8E55, 0xCD3B, 0x4274, 0xB2, 0x95, 0xF6, 0xC9, 0xBA, 0x2B, 0x84, 0x72) |
|
| DEFINE_GUID (GUID_COMPARTMENT_KEYBOARD_DISABLED, 0x71a5b253, 0x1951, 0x466b, 0x9f, 0xbc, 0x9c, 0x88, 0x08, 0xfa, 0x84, 0xf2) |
|
| DEFINE_GUID (GUID_COMPARTMENT_KEYBOARD_OPENCLOSE, 0x58273aad, 0x01bb, 0x4164, 0x95, 0xc6, 0x75, 0x5b, 0xa0, 0xb5, 0x16, 0x2d) |
|
| DEFINE_GUID (GUID_COMPARTMENT_HANDWRITING_OPENCLOSE, 0xf9ae2c6b, 0x1866, 0x4361, 0xaf, 0x72, 0x7a, 0xa3, 0x09, 0x48, 0x89, 0x0e) |
|
| DEFINE_GUID (GUID_COMPARTMENT_SPEECH_DISABLED, 0x56c5c607, 0x0703, 0x4e59, 0x8e, 0x52, 0xcb, 0xc8, 0x4e, 0x8b, 0xbe, 0x35) |
|
| DEFINE_GUID (GUID_COMPARTMENT_SPEECH_OPENCLOSE, 0x544d6a63, 0xe2e8, 0x4752, 0xbb, 0xd1, 0x00, 0x09, 0x60, 0xbc, 0xa0, 0x83) |
|
| DEFINE_GUID (GUID_COMPARTMENT_SPEECH_GLOBALSTATE, 0x2a54fe8e, 0x0d08, 0x460c, 0xa7, 0x5d, 0x87, 0x03, 0x5f, 0xf4, 0x36, 0xc5) |
|
| DEFINE_GUID (GUID_COMPARTMENT_PERSISTMENUENABLED, 0x575f3783, 0x70c8, 0x47c8, 0xae, 0x5d, 0x91, 0xa0, 0x1a, 0x1f, 0x75, 0x92) |
|
| DEFINE_GUID (GUID_COMPARTMENT_EMPTYCONTEXT, 0xd7487dbf, 0x804e, 0x41c5, 0x89, 0x4d, 0xad, 0x96, 0xfd, 0x4e, 0xea, 0x13) |
|
| DEFINE_GUID (GUID_COMPARTMENT_TIPUISTATUS, 0x148ca3ec, 0x0366, 0x401c, 0x8d, 0x75, 0xed, 0x97, 0x8d, 0x85, 0xfb, 0xc9) |
|
static HRESULT | initialize (void) |
|
static void | cleanup (void) |
|
static void | test_Register (void) |
|
static void | test_Unregister (void) |
|
static void | test_EnumInputProcessorInfo (void) |
|
static void | test_EnumLanguageProfiles (void) |
|
static void | test_RegisterCategory (void) |
|
static void | test_UnregisterCategory (void) |
|
static void | test_FindClosestCategory (void) |
|
static void | test_Enable (void) |
|
static void | test_Disable (void) |
|
static void | test_ThreadMgrAdviseSinks (void) |
|
static void | test_ThreadMgrUnadviseSinks (void) |
|
static void | test_DocumentMgrAdviseSinks (void) |
|
static void | test_DocumentMgrUnadviseSinks (void) |
|
static KeyEventSink * | impl_from_ITfKeyEventSink (ITfKeyEventSink *iface) |
|
static void | KeyEventSink_Destructor (KeyEventSink *This) |
|
static HRESULT WINAPI | KeyEventSink_QueryInterface (ITfKeyEventSink *iface, REFIID iid, LPVOID *ppvOut) |
|
static ULONG WINAPI | KeyEventSink_AddRef (ITfKeyEventSink *iface) |
|
static ULONG WINAPI | KeyEventSink_Release (ITfKeyEventSink *iface) |
|
static HRESULT WINAPI | KeyEventSink_OnSetFocus (ITfKeyEventSink *iface, BOOL fForeground) |
|
static HRESULT WINAPI | KeyEventSink_OnTestKeyDown (ITfKeyEventSink *iface, ITfContext *pic, WPARAM wParam, LPARAM lParam, BOOL *pfEaten) |
|
static HRESULT WINAPI | KeyEventSink_OnTestKeyUp (ITfKeyEventSink *iface, ITfContext *pic, WPARAM wParam, LPARAM lParam, BOOL *pfEaten) |
|
static HRESULT WINAPI | KeyEventSink_OnKeyDown (ITfKeyEventSink *iface, ITfContext *pic, WPARAM wParam, LPARAM lParam, BOOL *pfEaten) |
|
static HRESULT WINAPI | KeyEventSink_OnKeyUp (ITfKeyEventSink *iface, ITfContext *pic, WPARAM wParam, LPARAM lParam, BOOL *pfEaten) |
|
static HRESULT WINAPI | KeyEventSink_OnPreservedKey (ITfKeyEventSink *iface, ITfContext *pic, REFGUID rguid, BOOL *pfEaten) |
|
static HRESULT | KeyEventSink_Constructor (ITfKeyEventSink **ppOut) |
|
static void | test_KeystrokeMgr (void) |
|
static void | test_Activate (void) |
|
static void | test_EnumContexts (ITfDocumentMgr *dm, ITfContext *search) |
|
static void | test_EnumDocumentMgr (ITfThreadMgr *tm, ITfDocumentMgr *search, ITfDocumentMgr *absent) |
|
static int | check_context_refcount (ITfContext *iface) |
|
static TextEditSink * | impl_from_ITfTextEditSink (ITfTextEditSink *iface) |
|
static void | TextEditSink_Destructor (TextEditSink *This) |
|
static HRESULT WINAPI | TextEditSink_QueryInterface (ITfTextEditSink *iface, REFIID iid, LPVOID *ppvOut) |
|
static ULONG WINAPI | TextEditSink_AddRef (ITfTextEditSink *iface) |
|
static ULONG WINAPI | TextEditSink_Release (ITfTextEditSink *iface) |
|
static HRESULT WINAPI | TextEditSink_OnEndEdit (ITfTextEditSink *iface, ITfContext *pic, TfEditCookie ecReadOnly, ITfEditRecord *pEditRecord) |
|
static HRESULT | TextEditSink_Constructor (ITfTextEditSink **ppOut) |
|
static void | test_startSession (void) |
|
static void | test_endSession (void) |
|
static void | test_TfGuidAtom (void) |
|
static void | test_ClientId (void) |
|
static EditSession * | impl_from_ITfEditSession (ITfEditSession *iface) |
|
static void | EditSession_Destructor (EditSession *This) |
|
static HRESULT WINAPI | EditSession_QueryInterface (ITfEditSession *iface, REFIID iid, LPVOID *ppvOut) |
|
static ULONG WINAPI | EditSession_AddRef (ITfEditSession *iface) |
|
static ULONG WINAPI | EditSession_Release (ITfEditSession *iface) |
|
static void | test_InsertAtSelection (TfEditCookie ec, ITfContext *cxt) |
|
static HRESULT WINAPI | EditSession_DoEditSession (ITfEditSession *iface, TfEditCookie ec) |
|
static HRESULT | EditSession_Constructor (ITfEditSession **ppOut) |
|
static void | test_TStoApplicationText (void) |
|
static void | enum_compartments (ITfCompartmentMgr *cmpmgr, REFGUID present, REFGUID absent) |
|
static void | test_Compartments (void) |
|
static void | processPendingMessages (void) |
|
static void | test_AssociateFocus (void) |
|
static void | test_profile_mgr (void) |
|
static DWORD WINAPI | test_MultiThreadApartment_Thread (void *param) |
|
static void | test_MultiThreadApartment (void) |
|
| START_TEST (inputprocessor) |
|