Back to Blog
Getwindowtext5/28/2023 ![]() ![]() ![]() ![]() I know it recommends using WM_GETTEXT instead - but if someone is using GetWindowText (which based on my tests work), is there any way to stop it from getting the text from any of the controls on your dialog? To retrieve the text of a control in another process, send a WM_GETTEXT message directly instead of calling GetWindowText. However, if the target window is not responding and it belongs to the calling application, GetWindowText will cause the calling application to become unresponsive. It allows applications to call GetWindowText without becoming unresponsive if the process that owns the target window is not responding. If the window does not have a caption, the return value is a null string. If the target window is owned by another process and has a caption, GetWindowText retrieves the window caption text. If the target window is owned by the current process, GetWindowText causes a WM_GETTEXT message to be sent to the specified window or control. ![]()
0 Comments
Read More
Leave a Reply. |