i worked on project input method using tsf(text service framework) of microsoft. process of program started auto-run service when windows logon. wrote tsf api call this:
hresult hr = _pinputprocessorprofilemgr->enumprofiles(langid, &penum); in penum instance of ienumtfinputprocessorprofiles , _pinputprocessorprofilemgr instance of itfinputprocessorprofilemgr. generally, api enumerates registered profiles according language id.
however, api call got nothing profiles guid/clsid "00000000-0000-0000-0000-000000000000". if delayed current thread several seconds(by sleep method), api call returned right profiles expected(and still included profile id = 0). seemed result of tsf api calling depended on component's initialization.
does have concerns this? how can know tsf has been ready work?
Comments
Post a Comment