Forum: Win32/Win64 API (native code)
by mjustin,
5. Jun 2019
Ok, the code on (http://www.delphidabbler.com/articles?article=13) does not use the JVCL TJvAppInstances, but good to know ;)
I also posted another suggestion (see #18)
Forum: Win32/Win64 API (native code)
by mjustin,
5. Jun 2019
It is easy to count the instances running in the current session. Example in .Net:
private static int CountApplicationInstances()
{
var currentProcess = Process.GetCurrentProcess();
var processes = Process.GetProcessesByName(currentProcess.ProcessName);
// test if there's another process running in current session.
var...
Forum: Win32/Win64 API (native code)
by mjustin,
5. Jun 2019
Did you try TJvAppInstances already? It is designed for limiting app instances, and it allows to set the maximum number of simultaneous instances using the property MaxInstances. I am not soure however if it is also suited for a TS.