How to get acrobat process count in the server machine
We are the third party plug-in developers of Adobe Acrobat, and we have a product of plug-in applications,
and many of our customers using this product for many years.
In order to evalutate the license of the product in Server machines(from where many client machines accessing this product), we use the logic of counting the number of acrobat processes running on the machine, using the below code snippet
string MainFileName = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
System.Diagnostics.Process.GetProcessesByName(System.IO.Path.GetFileNameWithoutExtension(MainFileName)).Length;
From this we were getting number of Acrobat processes running the server and evaluting the same with license purchased, and
when all the licenses are in use, we display the message and opening the acrobat without loading our product.
this was working fine for many years. But recently one of our customer (where they are on Windows server 2019 datacenter), which purchased 6 liceneses, but when only 3-4 users open the acrobat,
it is saying all the 6 liceneses are in use and open the acrobat without our product. Why our product failing to get the correct count of acrobat processes? what causing to behave incorrectly, can anyone help me on this?
