Reading The Title bar of any active window in windows Xp by java code

hi how can i Read The Title bar of any active window(like notepad ,mirosoft word ,internet explorer and so on......)who is runnningin windows Xpand close that window by java code
[193 byte] By [v_m_007a] at [2007-11-26 16:15:29]
# 1

Hi,

You can use JNative to enumerate all windows ; see http://jnative.cvs.sourceforge.net/jnative/JNative/src/java/JNative/org/xvolks/test/callbacks/EnumCallback.java?view=markup

then knowing the HWND post a WM_QUIT message.

You can also use the PsApi class to kill the process.

--Marc (http://jnative.sf.net)

mdentya at 2007-7-8 22:38:25 > top of Java-index,Java HotSpot Virtual Machine,Specifications...