I'm programming an autosave application ,which closes all open windows automatically and saves all documents one by one,(first when warning message comes click yes,then push save in save as dialog).
I used EnumerateWindows -WIN32 API function to enumerate windows.
my application works fine when I click close "X" button manually (automatically click "YES" and fill Save AS dialog). but when I want to close them by sending WM_CLOSE message to windows one by one,suddenly enumeration stops! and no action is taken.
what should I do ?
please give a hint or where can I find some info about it.
thanks.