How to close a window irrespective of UI language
I know how to close Window if its title is known. see code below:
hwndMainPro = FindWindow(NULL,L"Open");
if (hwndMainPro>0)
{
SendMessage(hwndMainPro, WM_SYSCOMMAND, SC_CLOSE, 0);
}
But the problem is that above code will close "Open" window if UI language
is English. How can I close it in all or any UI language.
I am looking at a possibility of finding GUID of the window that remains
same in all systems so that I can close with that GUID.
No comments:
Post a Comment