简体   繁体   中英

Launch background win32 console application in UWP

A Win32 console application can be launched by

create_task(Windows::ApplicationModel::FullTrustProcessLauncher::LaunchFullTrustProcessForCurrentAppAsync()).then([&] {});

and

await Windows.ApplicationModel.FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();

following AppService Bridge Sample. A commond window is displayed even I don't want to input/output anything. I don't find any parameter like SW_HIDE in CreateProcess. How to launch background win32 console application in UWP?

In the project settings for the Win32 process, change the output type from Console Application to Windows Application, like this:

在此处输入图片说明

Thanks, Stefan Wick - Windows Developer Platform

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM