Skip to content

This is an example of how a UWP will a full trust component can communicate with a classic win32 app over named pipes

Notifications You must be signed in to change notification settings

AppInstaller/FullTrustNamedPipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FullTrustNamedPipe

This is an example of how a UWP will a full trust component can communicate with a classic win32 app over named pipes.

This project contains the following

  1. UWP with an App Service
  2. This UWP also includes a FullTrust executable - BackgroundProcess.exe
  3. A Classic Win32 app - Win32ConsoleApp

Here is the flow that is demonstrated with this example. The Win32ConsoleApp invokes the UWP app via an App Service which is hosted in the same process. The AppService is launched in the background which returns the App specific hardware ID (ASHWID) as a message over Appservices. It then launches the full trust background process. Once the UWP full trust and Win32 process are alive, they communicate via a Namedpipe.

This sample fetches the unique device ID in the UWP app and sends this over to the Win32 console app over appservice. Finally also shows how a full trust UWP components can write into PasswordVault and have a Win32 classic app read this information.

How to deploy? Set the platfrom to x64 for the UWP app and hit deploy. This will also build the BackgroundProcess and copy over the exe to its Appx directory. Next select the Win32ConsoleApp project and hit f5.

About

This is an example of how a UWP will a full trust component can communicate with a classic win32 app over named pipes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages