home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
- Subject: Re: process info problems
- Message-ID: <1993Jan25.121036.20082@kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: dront.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- References: <SMARGARI.93Jan24154951@emmy.nmsu.edu>
- Distribution: comp.sys.mac.programmer
- Date: Mon, 25 Jan 1993 12:10:36 GMT
- Lines: 20
-
- In <SMARGARI.93Jan24154951@emmy.nmsu.edu> smargari@nmsu.edu (Susan Margarit) writes:
-
- >err := GetFrontProcess(psn);
- >err := GetProcessInformation(psn,info);
-
- >after the first line, err is 0 but after the second line, I get error
- >-50 (process serial number is invalid). It seems like a pretty
-
- You have to fill in some parts of the process info
- rec BEFORE getting the info; most notably the size
- field and I believe the name field (with a pointer to
- a valid string, of course)
-
- Cheers,
-
- / h+
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
-
- NetHack 3.1: Any hour now
-