>I have a client that is networked using Win 95. I would like to be able to identify if a user has a specific application open that must be closed at midnight to avoid problems.
>
>The next step if the above is possible would be to terminate the application if possible.
>
>The application that I am monitoring is an app that runs on the workstations and communicates with a UNIX host so I guess we are talking about some kind of background program running on each station.
>The network is connected using token ring if that makes any difference.
Hi Stephen,
Assuming that you mean that you want to detect if another application is running on the computer, you can use my Is_Run function from the UT download section (under Win32 and other APIs) to retrieve the window handle based on the known portion of the title bar text. Then you can use the SendMessage function (as Ed mentioned) to close it. I wrote an FAQ on this subject that gives all the details.
hth,
George
Ubi caritas et amor, deus ibi est