Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!gatech!hubcap!ncrcae!ncrlnk!ncrwic!wbcs!doug From: doug@wbcs.UUCP (Doug Kratky) Newsgroups: comp.sys.apollo Subject: How do I get person, project, org from within a C program? Message-ID: <149@wbcs.UUCP> Date: 3 Mar 89 20:27:31 GMT Distribution: usa Organization: Boeing Computer Services, Wichita KS Lines: 22 I need to be able to get the login identifier of a calling process from wihin a C program. The description of pm_$get_sid_txt advertises that it does just that, and pm_$get_sid_txt returns a string in a useful format. Unfortunately, the sid (login identifier) that pm_$get_sid_txt returns can be changed by changing enivronment variables! Is there an equivalent call or a series of calls that will produce a login identifier that can be trusted (i.e., not affected by changes in environment variables)? Doug Kratky ... US MAIL ....................... UUCP ................................... Boeing Computer Services ...!scubed!ncr-sd!ncrwic!wbcs!doug PO Box 7730, MS K79-32 ...!bellcore!fenix!ncrlnk!ncrwic!wbcs!doug Wichita, KS 67277-7730 ...!hplabs!hp-sdd!ncr-sd!ncrwic!wbcs!doug ............................................................................