Re: pid_t from mach_port_t?
Re: pid_t from mach_port_t?
- Subject: Re: pid_t from mach_port_t?
- From: Mike Paquette <email@hidden>
- Date: Sun, 1 Oct 2006 12:16:18 -0700
On Oct 1, 2006, at 12:02 PM, email@hidden wrote:
I wanted to get the pid_t to be able to get ProcessSerialNumber (PSN)
and then CGSConnectionID. I should probably switch to Process Manager
and get the PSN directly.
Tomas
PS: I would rather not be doing what I am doing with CGS but I really
have no choice.
Before you go too far down that road, you should be aware that
CGSConnectionID-based SPIs work only from within the task that
created the CGSConnectionID. Trying to use the CGSConnectionID from
other processes will typically fail with an error return. In other
tasks, the ID serves only as a unique identifier for the owning
processes connection to and from the window server, typically for
internal diagnostic purposes such as error logging.
This is wildly off-topic for the darwin-dev mailing list, so this is
the last I'll say on the subject here.
Mike Paquette
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden