void pyi_launch_initialize(const char *executable, const char *extractionpath) { #if defined(__APPLE__) && defined(WINDOWED) /* * On OS X this ensures that the application is handled as GUI app. * Call TransformProcessType() in the child process. */ ProcessSerialNumber psn = { 0, kCurrentProcess }; OSStatus returnCode = TransformProcessType(&psn, kProcessTransformToForegroundApplication); #elif WIN32 CreateActContext(extractionpath, executable); #endif }
void pyi_launch_initialize(ARCHIVE_STATUS * status) { #if defined(_WIN32) char * manifest; manifest = pyi_arch_get_option(status, "pyi-windows-manifest-filename"); if (NULL != manifest) { manifest = pyi_path_join(NULL, status->mainpath, manifest); CreateActContext(manifest); free(manifest); } #endif /* if defined(_WIN32) */ }