I am writing a application based on Windows NT and because of the life
critical nature of the application there is a requirement that no extraneous
windows suddenly appear while the application is running. I could check for
this by call EnumWindowProc etc. and enumerating all the windows and
checking the handles etc. However this would be time consumming both to
write (rather boring in fact) and also in terms of CPU. What I would really
like is an API function that would just give me the count of windows so that
I would only have to save this number after the application starts and then
just check it periodically. Even better would be a system hook that tells me
if a new window has appeared.
Any ideas out there.
Thanks,
Shimon