I want to obtain the current number of window handles and the system-wide window handle limit in C#. How do I go about this?
The full quote OregonGhost refers to is
If you have to ask, you're probably doing something wrong.
It's from Why is the limit of window handles per process 10,000? You should read this.