Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kill a process
Message
From
30/03/2004 12:12:17
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00890217
Message ID:
00890862
Views:
30
>Guys , I'm still looking for the code to kill my process in win2k. so far all the codes I've been given don't work. and for some reason the links you all gave don'r work for me, they don't display.
>
>please help

Selim,

I'm not sure why you need to "kill". As Michael Asherman already said, you can close an application by geting its handle window then send WM_CLOSE message.
#Define WM_CLOSE   0x10
Declare Long FindWindow in User32 ;
   String cClassName, String cWindowTitle
Declare Long SendMessage in User32 ;
   Long hWnd, Long Msg, Long wParam, Long lParam

hWnd = FindWindow( Null, 'Window Title')
SendMessage( hWnd, WM_CLOSE, 0, 0 )
Give it a try

PS: my apologies to make this thread off-topic
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform