How to programmatically get GDI and User Object count in Delphi?

I have a program that starts to reach 10,000 user limits. When I force him to break the limit, the program will work. I could have my users change the registry entry, but this is inconvenient to ask the client, and many are not given access to the registry.

I see the value in the task manager, but I would like to get the value in my application. Is there a way to get these values ​​programmatically?

OK. Now I am ready for all the comments that only a poorly written program requires many objects; >)

+3
source share
1 answer

GetGuiResources. GetCurrentProcess()

+10

Source: https://habr.com/ru/post/1780907/


All Articles