This call returns the application type of an executable file.
DosQAppType
ExecutableFileName (PSZ) - input
If the string appears to be a fully qualified path (contains a " : " in the second position and/or contains a " \ "), only the indicated drive:directory is searched. If the string is not a fully qualified path, the current directory is searched. If the filename is not found in the current directory, each drive:directory specification in the PATH defined in the current program's environment is searched for this file. Note that any extension (.xxx) is acceptable for the executable filename. If no extension is specified, a default extension of ".exe" is used. AppType is a word that contains flags denoting the application type, as determined by reading the executable file header specified by ExecutableFileName. Note that the call sequence passes a pointer to a location in application memory to return the application type flags.
Bit
This function is used by the Presentation Manager shell to determine the application type being executed. The application type is specified at link time in the module definition file.