Path: utzoo!news-server.csri.toronto.edu!rutgers!cbmvax!bj From: bj@cbmvax.commodore.com (Brian Jackson) Newsgroups: comp.sys.amiga.programmer Subject: Re: Simple Question: FInding CLI number Keywords: How to find the CLI number Message-ID: <19851@cbmvax.commodore.com> Date: 14 Mar 91 07:27:10 GMT References: <15772@chaph.usc.edu> Reply-To: bj@cbmvax.commodore.com (Brian Jackson) Organization: Commodore, West Chester, PA Lines: 23 In article <15772@chaph.usc.edu> aliu@aludra.usc.edu (Alex C. Liu) writes: >THis is a simple question that I cant figure out. How do you find the >CLI number of a process? What I mean, is that if I start a program >running on a CLI, how do I find out what is the number of that CLI we >are running from C? #include #include struct Process *FindTask( char * name ) ; struct Process *mytask = FindTask(NULL) ; LONG tasknum = mytask->pr_TaskNum ; bj >Alejandro Liu |EMail: aliu@usc.edu |All mispellings are intentional ----------------------------------------------------------------------- | Brian Jackson Software Engineer, Commodore-Amiga Inc. GEnie: B.J. | | bj@cbmvax.cbm.commodore.com or ...{uunet|rutgers}!cbmvax!bj | | "We defy augury" | -----------------------------------------------------------------------