Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pid_t from mach_port_t?




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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.