2 #include <ApplicationServices/ApplicationServices.h>
5 void bring_app_foreground()
8 //On Mac OS X, make the application foreground application.
9 ProcessSerialNumber PSN
;
10 GetCurrentProcess(&PSN
);
11 TransformProcessType(&PSN
,kProcessTransformToForegroundApplication
);