C++ (Qt)ProcessSerialNumber psn;OSErr err; err = ::GetCurrentProcess(&psn);if (err == noErr) ::SetFrontProcess(&psn);
ProcessSerialNumber psn;OSErr err; err = ::GetCurrentProcess(&psn);if (err == noErr) ::SetFrontProcess(&psn);
err = ::GetCurrentProcess(&psn);