[futurebasic] Re: [FB] GetProcessInfo or fn GetNextProcess

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2005 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Thu, 21 Jul 2005 20:05:55 +1200
Brian Stevens wrote:

> Seems using either GetProcessInfo (which is a wrapper for  
> GetNextProcess and GetProcessInformation) or the toolbox calls does  
> not return a complete list of processes. Both toolbox and FB  
> keyword approaches have the same results with approximately 10 PIDs  
> returned. Activity monitor shows approximately 30 or so active  
> processes. Does anyone know why the others don't show up? Thought  
> it might be related to only processes that are started by my userid  
> but that theory wasn't true after testing.  Anyway, I'd be  
> interested in knowing what processes are expected to be returned by  
> these calls and which are not.
>

All UNIX processes have a PID, but only a subset have a  
ProcessSerialNumber and are visible to GetNextProcess.

Processes.h says:

"All applications ( things which can appear in the Dock or which are  
not documents and are launched by the Finder or Dock ) on Mac OS 10  
have a unique process serial number. This number is created when the  
application launches, and remains until the application quits."


Robert P.