static extern int ActivateWindow (IntPtr windowHnd, bool inActivate); [DllImport ("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")]