github.com/wherewhere/Process-For-UWP

一种适用于 UWP 平台的 Process 方法

Open this visualization on its own page →

Contributors

1

Lines of Code

189

From

2021-10-07

To

2022-04-26

About wherewhere/Process-For-UWP

Process for UWP is a C# library that implements a Process class for the Universal Windows Platform by leveraging out-of-process COM communication. The project enables UWP applications, which normally run in a sandboxed environment with restricted capabilities, to interact with desktop applications and execute processes by establishing inter-process communication through COM interfaces. It supports most common Process methods and properties that developers would typically use.

The library provides two communication approaches: OOP/COM (out-of-process) communication and WinRT/COM communication, each with different configuration requirements in the manifest and project setup. Developers need to structure their solution with a packaging project, a UWP project, and a desktop application project, with specific NuGet package references for each tier. The implementation can operate either in full-trust mode for communicating with unrestricted applications or with sandbox restrictions depending on the chosen communication mechanism.

The project remains under active development and includes detailed setup instructions, including manifest configuration requirements, COM activation setup in the desktop application layer, and initialization code for the UWP side. The documentation emphasizes important caveats such as generating unique UUIDs to avoid conflicts with other COM components, noting that native code compatibility requires using projection assemblies, and limitations around sandbox-to-sandbox communication scenarios.

Share this video