EnumWindows function in Win10 enumerates only desktop apps

后端 未结 2 1689
既然无缘
既然无缘 2020-12-19 12:50

The documentation on EnumWindows underscores:

Note For Windows 8 and later, EnumWindows enumerates only top-level windows of desktop apps.

2条回答
  •  被撕碎了的回忆
    2020-12-19 13:29

    You are correct. EnumWindows will only find windows that belong to programs that aren't Modern (Metro) apps. It will get windows that belong to traditional (desktop) programs. FindWindowEx, according to several sources, does work all kinds of windows, including those from Modern apps.

提交回复
热议问题