René
René

Reputation: 41

Does FindWindowEx() work differently in Windows 11?

I was successfully using FindWindowEx() for getting a console window handle. The window search was conducted by window title. The problem is that this method stopped working in Windows 11.

Under Windows 10, FindWindowEx (-, -, -, "My_Console_Title") returns a valid handle to My_Console, which allowed me to send messages to it. Under Windows 11, the same call returns an invalid handle.

Upvotes: 0

Views: 245

Answers (1)

Jeaninez - MSFT
Jeaninez - MSFT

Reputation: 4040

The issue has been fixed in Windows 11 Insider Preview Build 25231. You could refer to the link:https://blogs.windows.com/windows-insider/2022/10/27/announcing-windows-11-insider-preview-build-25231/

Fixed a rare issue where FindWindow and FindWindowEx might return an unexpected window.

Upvotes: -1

Related Questions