CompuServe Messages

#Win16 detect Win32s app

    30-Jul-93 13:46:41
Sb: #Win16 detect Win32s app
Fm: Michael Geary 76146,42
To: All
I have a Windows 3.1 application that scans through the list of top-level application windows and needs to know whether a window belongs to a Win16 or Win32s application. I can of course easily get the window's instance handle, module handle, or task handle. Given any of these, is there a recommended way to tell when the application is a Win32s app? I have noticed that the module name in the EXE header in memory is W32SXXXX for a Win32s app. I could look this up easily enough by peeking into the EXE header using the module handle, but I'm wondering if there is a cleaner way to detect a Win32s app. Thanks, Mike There are 3 Replies.