Everyone knows that 16-bit programs won't run in 64-bit OSes...
Is there a way to detect when someone tries to launch one of these on 64-bit OSes? I'm trying to make a small program that can run constantly, detect when a 16-bit program is being run, get the full path and filename of the program that can't launch, and save it to an INI for another program to read.
I've tried detecting the "incompatible program" message that Windows spits out using things like WinWait, but the title bar is the full path and filename (not very useful for detecting when the message appears since it changes per-file), and the text in the message box seems invisible to autoit (the window info tool only sees the OK button). For reference, it's this dialog.
Does anyone know of a way to handle this?