void CTextService::_UninitKeyEventSink() { ITfKeystrokeMgr *pKeystrokeMgr; if(_pThreadMgr->QueryInterface(IID_PPV_ARGS(&pKeystrokeMgr)) == S_OK) { pKeystrokeMgr->UnadviseKeyEventSink(_ClientId); SafeRelease(&pKeystrokeMgr); } }
void WeaselTSF::_UninitKeyEventSink() { ITfKeystrokeMgr *pKeystrokeMgr; if (_pThreadMgr->QueryInterface(IID_ITfKeystrokeMgr, (void **) &pKeystrokeMgr) != S_OK) return; pKeystrokeMgr->UnadviseKeyEventSink(_tfClientId); pKeystrokeMgr->Release(); }