home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22116 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.0 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
  3. From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
  4. Subject: Re: process info problems
  5. Message-ID: <1993Jan25.121036.20082@kth.se>
  6. Sender: usenet@kth.se (Usenet)
  7. Nntp-Posting-Host: dront.nada.kth.se
  8. Organization: Royal Institute of Technology, Stockholm, Sweden
  9. References: <SMARGARI.93Jan24154951@emmy.nmsu.edu>
  10. Distribution: comp.sys.mac.programmer
  11. Date: Mon, 25 Jan 1993 12:10:36 GMT
  12. Lines: 20
  13.  
  14. In <SMARGARI.93Jan24154951@emmy.nmsu.edu> smargari@nmsu.edu (Susan Margarit) writes:
  15.  
  16. >err := GetFrontProcess(psn);
  17. >err := GetProcessInformation(psn,info);
  18.  
  19. >after the first line, err is 0 but after the second line, I get error
  20. >-50 (process serial number is invalid). It seems like a pretty
  21.  
  22. You have to fill in some parts of the process info
  23. rec BEFORE getting the info; most notably the size
  24. field and I believe the name field (with a pointer to
  25. a valid string, of course)
  26.  
  27. Cheers,
  28.  
  29.                         / h+
  30. -- 
  31.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  32.  
  33.   NetHack 3.1: Any hour now
  34.