Guest dieter98 Posted January 24, 2005 Report Posted January 24, 2005 its possible to stop/end all other applications than mine programmatically ? VB.net
Guest Peter Foot Posted February 3, 2005 Report Posted February 3, 2005 its possible to stop/end all other applications than mine programmatically ? VB.net <{POST_SNAPBACK}> With a couple of P/Invokes yes (or use OpenNETCF - www.opennetcf.org/sdf/) See OpenNETCF.Win32.Win32Window class You'll need to loop through all top level windows using GetWindow with HWND_FIRST then HWND_NEXT. Then check that each is a visible window using GetWindowLong with GWL_STYLE and check for WS_VISIBLE. Then if you've identified a visible window use SendMessage to send WM_CLOSE to the window to close the application. Peter
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now