How do you obtain Current Window Handle Count and Window Handle Limit in .NET?

前端 未结 3 1077
时光说笑
时光说笑 2021-02-08 14:46

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?

3条回答
  •  鱼传尺愫
    2021-02-08 15:28

    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.

提交回复
热议问题