I need to be able to detect programatically whether a given window is an error dialog box or not. I recognize that in the extreme case this is probably impossible since it's quite subjective. I'm wondering if microsoft marks these dialog boxes in any way. ie. is there a window style, or something through MSAA, or any other characteristic of the window I could look at to determine that a window is an error dialog. The only way I can come up with so far is to do some kind of image matching on the window icon to look for the little red dot with white x image that appears in error dialogs. It seems like there's got to be an easier way than this however. Am I missing something, or is there really no way to do this?
Thanks much.
-Nate