extern static int GetCurrentProcess (ref Carbon.ProcessSerialNumber psn); [DllImport("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")]