Drew Wutka
DWUTKA at marlow.com
Thu Oct 16 11:28:52 CDT 2003
Probably not. It just sends a 'close' message to the window itself. If the thread is locked up, then it needs to be shut down hard. There is a TerminateProcess API, but I don't know off hand how to get the handle to an external process. Drew -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, October 16, 2003 11:12 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT: Alternative to NT TaskManager Thanks for the code...its steps through fine...finds the window...I get no error...but it doesn't do anything to it? Am I missing a part? Thanks, Mark >From: Drew Wutka <DWUTKA at marlow.com> >Reply-To: Access Developers discussion and problem >solving<accessd at databaseadvisors.com> >To: "'Access Developers discussion and problem solving'" ><accessd at databaseadvisors.com> >Subject: RE: [AccessD] OT: Alternative to NT TaskManager >Date: Tue, 14 Oct 2003 16:32:06 -0500 > >Try this... > >Public Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long) As >Long > >Function fDestroyWindow(WindowName As String) >On Error GoTo erlevel >Dim winHwnd As Long >Dim RetVal As Long >winHwnd = FindWindow(vbNullString, WindowName) >If winHwnd <> 0 Then >RetVal = DestroyWindow(winHwnd) >End If >erlevel: >End Function > >It's probably not the best method.....I know there are API's to kill >threads, but this was in an old project of mine, so it was the first thing >I >had handy. > >Drew > >-----Original Message----- >From: Mark A Matte [mailto:markamatte at hotmail.com] >Sent: Tuesday, October 14, 2003 12:03 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] OT: Alternative to NT TaskManager > > >Hello All, > >Does anyone know of an API call...or anything similar I can call from A97 >to > >kill a program not responding without using the TaskManager in NT? > >Thanks, > >Mark > >_________________________________________________________________ >Concerned that messages may bounce because your Hotmail account has >exceeded > >its 2MB storage limit? Get Hotmail Extra Storage! >http://join.msn.com/?PAGE=features/es > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Concerned that messages may bounce because your Hotmail account has exceeded its 2MB storage limit? Get Hotmail Extra Storage! http://join.msn.com/?PAGE=features/es _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com