Is it possible for a UWP app to launch its Desktop Bridge (full-trust application component) with arbitrary command-line arguments? I see the ability to specify \"argument g
We cannot pass argument dynamically to the full trust process. However, we can pass it using LocalSettings.
Add the arguments to Local Settings and launch the full trust process: In C++:
auto settings = Windows::Storage::ApplicationData::Current->LocalSettings;
settings->Values->Insert("arg1", "val1");
settings->Values->Insert("arg2", "val2");
// Launch Full trust proc
create_task(FullTrustProcessLauncher::LaunchFullTrustProcessForCurrentAppAsync()).then([](task
In the full trust process code,
auto settings = Windows::Storage::ApplicationData::Current->LocalSettings;
auto val1 = settings->Values->Lookup("arg1")->ToString();