How to close a simple client process on the host programmatically?

Started by MikeinFL, March 16, 2020, 12:24:08 PM

Previous topic - Next topic

MikeinFL

Using v16 and simple client I want to write a program that will display all active client processes on the host and have the ability to close a client process.  I did this on ProvideX by logging each fid and PID whenever a client logged in, and then checking that window was active and using the old *SNDMSG.API to find the open window and used PID to close it by executing kill.exe on the host..

On v16 simple client *winapi like this is not finding any window: 
CALL "*winapi;FindWindow",WIN_TEXT$,WIN_HANDLE

What's the right way to do this?

Mike King

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com