Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

 
 
How to use Windows UWP commands under a Windows 32 Classic desktop application?
 
Step 1: Include references
 
1a) winmd
In the first step you have to connect the file winmd from the Windows SDK or Windows 10 Kit.
 
Directory: 
C: \ Program Files (x86) \ Windows Kits \ 10 \ UnionMetadata
The file:
C: \ Program Files (x86) \ Windows Kits \ 10 \ UnionMetadata \ Windows.winmd
 

 
So the Window.winmd reference is active

 
1b. Reference to NetCore
And in the second step, the reference to NetCore 4.5:
Directory:
C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework \ .NETCore \ v4.5
File for reference:
System.Runtime.WindowsRuntime.dll

 
So that these two references are integrated

 
 
Directory: C: \ Program Files (x86) \ Windows Kits \ 10 \ UnionMetadata
The file: C: \ Program Files (x86) \ Windows Kits \ 10 \ UnionMetadata \ Windows.winmd

 
 
Manual:
A good guide with an example can be found at:
[Lnk "https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/#foGtgZgGthsD47yo.97" /]

 
Basics:
To use the Windows 10 API functions on Windows Desktop WPF and Winforms, you must install the Window 10 SDK or Window 10 Kit on the development computer.
 
[Lnk "https://developer.microsoft.com/de-de/windows/downloads/windows-10-sdk" /]
The Windows 10 SDK (10.0.15063.0) contains the latest headers, libraries, metadata, and tools for creating apps for Windows 10.
The Windows 10 SDK, combined with Visual Studio 2017, provides the best experience to create apps for Windows and allows you to use the latest tools and APIs from the Windows 10 Creators Update.

 
Mobile

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de