Hello @Mai Co Zo Xop ,
My question is some windows and child windows don't have lpszName parameter when HCBT_CREATEWND fired and any other way to get it, not how to get window title.
If you mean that the lpszName parameter is empty string or NULL
, it is possible because the window name may be not set when creating window but set at later time after the window has been created.
One possible solution is hooking APIs that can be used to set window name after the window created, like SetWindowText(). Detours is most commonly used to intercept Win32 APIs calls within an application.
Thank you!
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.