Re: pid_t from mach_port_t?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Oct 1, 2006, at 12:02 PM, darwin-dev-request@lists.apple.com 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. Mike Paquette mpaque@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike Paquette