Is it possible to do
if(HWND1 == HWND2)
or is there a function that I need to use to see if two hwnd point to the same window?
Is it possible to do
if(HWND1 == HWND2)
or is there a function that I need to use to see if two hwnd point to the same window?
A HWND is just a long value, so yes you can compare them that way.
Depends how stale your data is. Windows re-uses hwnds (eventually), so there's no guarantee that 1005A is both a valid window and the window you expected, it might be another window that re-used 1005A.