how does Windows (re)assign HWND values?
Posted on 2006-05-24
Lets say I use the Windows CE API call - EnumWindows, to get a list of the top level windows. I will then have a list of HWND values for the open top level windows.
Now lets say I store that list of HWND values.
I realize that a window could close, but will the OS reuse those values for new windows? If some time later I use one of the stored HWND values, for how long will the value refer to the window it referenced when I obtained the value?