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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With