pszName (PSZ) - input
If the string appears to be a fully qualified path (that is, it contains a " : " in the second position, or it contains a " \ ", or both), then the file is located in the indicated drive:directory. If neither of these is true, and this file name 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 file name. If no extension is specified, a default extension of ".exe" is used.
pFlags (PULONG) - output
pFlags is defined as follows:
Bit
000
ulrc (APIRET) - returns
DosQueryAppType returns one of the following values: