在 UWP 中启动后台 win32 控制台应用程序
Launch background win32 console application in UWP
可以通过
启动 Win32 控制台应用程序
create_task(Windows::ApplicationModel::FullTrustProcessLauncher::LaunchFullTrustProcessForCurrentAppAsync()).then([&] {});
和
await Windows.ApplicationModel.FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
以下 AppService Bridge 示例。即使我不想 input/output 任何东西,也会显示一个常见的 window。我在 CreateProcess 中找不到 SW_HIDE 之类的任何参数。如何在 UWP 中启动后台 win32 控制台应用程序?
在 Win32 进程的项目设置中,将输出类型从控制台应用程序更改为 Windows 应用程序,如下所示:
谢谢,
Stefan Wick - Windows 开发者平台
可以通过
启动 Win32 控制台应用程序create_task(Windows::ApplicationModel::FullTrustProcessLauncher::LaunchFullTrustProcessForCurrentAppAsync()).then([&] {});
和
await Windows.ApplicationModel.FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
以下 AppService Bridge 示例。即使我不想 input/output 任何东西,也会显示一个常见的 window。我在 CreateProcess 中找不到 SW_HIDE 之类的任何参数。如何在 UWP 中启动后台 win32 控制台应用程序?
在 Win32 进程的项目设置中,将输出类型从控制台应用程序更改为 Windows 应用程序,如下所示:
谢谢, Stefan Wick - Windows 开发者平台