PxPlus User Forum

Twitter Twitter Twitter

Author Topic: How to close a simple client process on the host programmatically?  (Read 1492 times)

MikeinFL

  • Silver Member
  • ***
  • Posts: 35
    • View Profile
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?
« Last Edit: March 16, 2020, 01:57:15 PM by MikeinFL »

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: How to close a simple client process on the host programmatically?
« Reply #1 on: March 16, 2020, 02:19:27 PM »
Why not just run the USERS command?
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com