Prohibit a user from performing concurrent logins for a PowerBuilder App
Posted on 2001-07-19
I am building security into a system that contains 3 different PowerBuilder applications ( 3 different exe's). I would like to know how I can prohibit a user from launching a second instance of the same executable. I understand that there is a way using Microsoft's API to find out if a particular executable is in the computer's memory.
I am currently using Microsoft's API to obtain the computer name and user name of the person logged onto the computer.
I would like the PowerBuilder application to check the computer's memory to ensure the same exe is not currently running prior to displaying the login screen to the application.
Being a novice developer, I would greatly appreciate it if you could provide code samples.