Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the right way to kill FP DOS from VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00500406
Message ID:
00500900
Views:
41
>>Nick,
>>
>>To the best of my knowledge, there's no way via a window handle to retrieve the handle to a specific process. I think that the only ways are to use either CreateProcess, or GetCurrentProcess.
>
>George,
>
>See Thread #496654 Message #496824 for a way.
>
>Nick,
>You could alos use this to kill your process.
>
>In addition, even if you don't want to use this, I would recommend using PostMessage instead of SendMessage. SendMessage waits for a response before returning control to the process that is initiating the send. If the other process is busy or locked up in some way, it may not respond and you will be waiting forever. PostMessage will just add a message to the process's message queue and immediately return. If it is not locked up and is stilling processing the messages, the terminate message will be processed in due course.
>
>HTH,

Thanks Larry! I think this is what I was looking for.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform