Many thanks Christof. I couldn't have worked that out from the information I could find!
John John Weller Wessex Computer Solutions 01380 728880 07976 393631 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Christof Wollenhaupt > Sent: 15 October 2006 09:53 > To: [EMAIL PROTECTED] > Subject: RE: Why will VFP9 not QUIT? > > > Hi John, > > > Could you give me the syntax or a code snippet for the TerminateProcess > call please? > > Local lnHandle > Declare Long OpenProcess in Win32API ; > Long dwDesiredAccess, ; > Long bInheritHandle, ; > Long dwProcessId > Declare TerminateProcess in Win32API ; > Long hProcess, ; > Long uExitCode > lnHandle = OpenProcess( 1, 0, _VFP.ProcessID ) > TerminateProcess( m.lnHandle, 1 ) > > > -- > Christof > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

