Mark Castoe <[log in to unmask]> wrote:
> I am working on an application which will run under both the MPE CI and
> the POSIX shell. I need to be able to determine whether or not the app
> has been launched under the shell. Is there an easy way to do this? I
> have considered using HPFOPEN to open a file with an HFS filename and
> checking to see if it fails.
Look at either AIFPROCGET or PROCINFO which will return the PIN of the
processes father and then the program file name which you can then compare
to CI.PUB.SYS or SH.HPBIN.SYS.
Lee Courtney
Monterey Software Group Inc.
10420 S. DeAnza Blvd #C8
Cupertino, California USA 95014-3031
Voice: 408-253-1778 Fax: 408-253-1815
E-Mail: [log in to unmask]
www.editcorp.com/Businesses/MontereySoftware