How to close windows on screen keyboard with c++ -


i'm trying close windows on-screen keyboard (osk.exe) in c++ code, without success.

hwnd kbisopen = findwindow(text("oskmainclass"),null); closewindow(kbisopen);   

closewindow or sendmessage didn't anything. note problem not in kbisopen, , getlasterror returns 5 (error_access_denied).

what can deal problem?

assuming findwindow returns valid window handle, sendmessage(kbisopen, wm_destroy, null, null); should close it. (although it's kind of dangerous way it. try sending wm_close , wm_quit first.)

however, it's possible keyboard window throws away destroy messages, , keeps on going no matter throw @ it. i'm running windows 7, can't tell myself.

< unimportant opinion > bkisopen sounds name of boolean variable telling if window open, not handle window if exists. < /unimportant opinion >


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -