extern static int BeginAppModalStateForWindow (IntPtr window); [DllImport("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")]