Is the window handle (HWND) of a window (especially Windows Notepad) persistent during the lifetime of the window, especially across hibernation?
Say I write a programm that retrieves (eg using FindWindowEx-function) and saves the handle of a specific window of another programm (in my case the window of a Windows Notepad).
Then the pc is hibernated and dehibernated/started again.
After the start/"dehibernation" the window of the other programm still exists, but will its window handle (HWND) still be the same?
(E.g. important because my programm wants to use the handle of the other window to perform some action with the other window like retrieve its content).
Thanks for any help
As far as hibernation is concerned, it won't change according to Resuming from hibernation.