PxPlus User Forum

Main Board => Discussions => Thin Client/WindX => Topic started by: MikeinFL on March 16, 2020, 12:24:08 PM

Title: How to close a simple client process on the host programmatically?
Post by: MikeinFL on March 16, 2020, 12:24:08 PM
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?
Title: Re: How to close a simple client process on the host programmatically?
Post by: Mike King on March 16, 2020, 02:19:27 PM
Why not just run the USERS command?