Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 使用 Win32 API 验证 HWND
如果 HWND 的窗口仍然存在,我该如何阻止?我有一个窗口的 HWND。该窗口存在于另一个进程中。我想知道 Window 是否还“活着”。做这个的最好方式是什么?
MSDNIsWindow功能正是这样做的:
IsWindow
确定指定的窗口句柄是否标识现有窗口。