Skip to content

Commit

Permalink
Add KozaniManagerRuntime (microsoft#3350)
Browse files Browse the repository at this point in the history
* Added KozaniManagerRuntime + KozaniManagerRuntimeTests

* Fixed up dev.cpp.dll.winrt-client-server

* Fixed typo in vcxproj
  • Loading branch information
DrusTheAxe authored Jan 20, 2023
1 parent 514a74e commit 1ee0a65
Show file tree
Hide file tree
Showing 30 changed files with 932 additions and 55 deletions.
86 changes: 70 additions & 16 deletions WindowsAppRuntime.sln
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VersionInfoTests", "test\Ve
{5E2CC9D5-7C05-41D9-9DB5-EC5DF64BA1DC} = {5E2CC9D5-7C05-41D9-9DB5-EC5DF64BA1DC}
{9C1A6C58-52D6-4514-9120-5C339C5DF4BE} = {9C1A6C58-52D6-4514-9120-5C339C5DF4BE}
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Kozani", "Kozani", "{84F66485-4391-41C7-89CB-D5006EDF1383}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "KozaniAppGraph", "KozaniAppGraph", "{AC000276-4BCF-4E2B-B9C2-1B2716E61CC1}"
Expand Down Expand Up @@ -592,6 +593,23 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MakeMSIXTests", "test\Kozan
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.FrameworkUdk.PackageReference", "eng\PackageReference\FrameworkUdk\Microsoft.FrameworkUdk.PackageReference.csproj", "{FD0CC14A-ED4B-4936-B68B-F31E58372E32}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "KozaniManagerRuntime", "KozaniManagerRuntime", "{49CF5AB7-304F-4C78-A098-A77B2931F64E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "KozaniManagerRuntimeTests", "KozaniManagerRuntimeTests", "{357BE857-3E5D-475A-8A03-583F44E6513B}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "KozaniManagerRuntimeTests", "test\Kozani\KozaniManagerRuntimeTests\KozaniManagerRuntimeTests.vcxproj", "{4B4667B2-94DB-4A19-8270-0FDB1676C27B}"
ProjectSection(ProjectDependencies) = postProject
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5} = {400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}
{B73AD907-6164-4294-88FB-F3C9C10DA1F1} = {B73AD907-6164-4294-88FB-F3C9C10DA1F1}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "KozaniManagerRuntime", "dev\Kozani\KozaniManagerRuntime\KozaniManagerRuntime.vcxproj", "{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}"
ProjectSection(ProjectDependencies) = postProject
{5C0E77FA-B6F4-4B3F-AAE5-AB85CF97816F} = {5C0E77FA-B6F4-4B3F-AAE5-AB85CF97816F}
{B73AD907-6164-4294-88FB-F3C9C10DA1F1} = {B73AD907-6164-4294-88FB-F3C9C10DA1F1}
{CFC67AC3-3DC3-4981-A9BB-BC5ED06542D4} = {CFC67AC3-3DC3-4981-A9BB-BC5ED06542D4}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -1740,22 +1758,6 @@ Global
{442FB943-1197-48FE-B3B6-8C1BCA1E81E4}.Release|x64.Build.0 = Release|x64
{442FB943-1197-48FE-B3B6-8C1BCA1E81E4}.Release|x86.ActiveCfg = Release|Win32
{442FB943-1197-48FE-B3B6-8C1BCA1E81E4}.Release|x86.Build.0 = Release|Win32
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|ARM64.Build.0 = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|x64.ActiveCfg = Debug|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|x64.Build.0 = Debug|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|x86.ActiveCfg = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|x86.Build.0 = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|Any CPU.Build.0 = Release|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|ARM64.ActiveCfg = Release|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|ARM64.Build.0 = Release|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|x64.ActiveCfg = Release|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|x64.Build.0 = Release|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|x86.ActiveCfg = Release|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|x86.Build.0 = Release|Any CPU
{77D1D0EB-E4CA-4043-8CD1-72D30E19B65B}.Debug|Any CPU.ActiveCfg = Debug|x64
{77D1D0EB-E4CA-4043-8CD1-72D30E19B65B}.Debug|Any CPU.Build.0 = Debug|x64
{77D1D0EB-E4CA-4043-8CD1-72D30E19B65B}.Debug|ARM64.ActiveCfg = Debug|ARM64
Expand Down Expand Up @@ -2108,6 +2110,54 @@ Global
{91FA558E-ABE3-4F36-B611-927AC041F5D2}.Release|x64.Build.0 = Release|x64
{91FA558E-ABE3-4F36-B611-927AC041F5D2}.Release|x86.ActiveCfg = Release|Win32
{91FA558E-ABE3-4F36-B611-927AC041F5D2}.Release|x86.Build.0 = Release|Win32
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|ARM64.Build.0 = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|x64.ActiveCfg = Debug|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|x64.Build.0 = Debug|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|x86.ActiveCfg = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Debug|x86.Build.0 = Debug|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|Any CPU.Build.0 = Release|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|ARM64.ActiveCfg = Release|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|ARM64.Build.0 = Release|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|x64.ActiveCfg = Release|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|x64.Build.0 = Release|x64
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|x86.ActiveCfg = Release|Any CPU
{FD0CC14A-ED4B-4936-B68B-F31E58372E32}.Release|x86.Build.0 = Release|Any CPU
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Debug|Any CPU.ActiveCfg = Debug|x64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Debug|Any CPU.Build.0 = Debug|x64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Debug|ARM64.ActiveCfg = Debug|ARM64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Debug|ARM64.Build.0 = Debug|ARM64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Debug|x64.ActiveCfg = Debug|x64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Debug|x64.Build.0 = Debug|x64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Debug|x86.ActiveCfg = Debug|Win32
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Debug|x86.Build.0 = Debug|Win32
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Release|Any CPU.ActiveCfg = Release|x64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Release|Any CPU.Build.0 = Release|x64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Release|ARM64.ActiveCfg = Release|ARM64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Release|ARM64.Build.0 = Release|ARM64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Release|x64.ActiveCfg = Release|x64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Release|x64.Build.0 = Release|x64
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Release|x86.ActiveCfg = Release|Win32
{4B4667B2-94DB-4A19-8270-0FDB1676C27B}.Release|x86.Build.0 = Release|Win32
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Debug|Any CPU.ActiveCfg = Debug|x64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Debug|Any CPU.Build.0 = Debug|x64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Debug|ARM64.ActiveCfg = Debug|ARM64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Debug|ARM64.Build.0 = Debug|ARM64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Debug|x64.ActiveCfg = Debug|x64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Debug|x64.Build.0 = Debug|x64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Debug|x86.ActiveCfg = Debug|Win32
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Debug|x86.Build.0 = Debug|Win32
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Release|Any CPU.ActiveCfg = Release|x64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Release|Any CPU.Build.0 = Release|x64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Release|ARM64.ActiveCfg = Release|ARM64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Release|ARM64.Build.0 = Release|ARM64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Release|x64.ActiveCfg = Release|x64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Release|x64.Build.0 = Release|x64
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Release|x86.ActiveCfg = Release|Win32
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -2288,6 +2338,10 @@ Global
{183603F5-540B-4286-A5F9-40CF20F62660} = {73A8E7CE-EBB2-4524-ADE1-4C2BF2057FCC}
{B78ACB5B-3256-486E-B6D0-510C7DA7FBB0} = {9164C50F-E9CA-41BD-BCA9-5F30845FA257}
{91FA558E-ABE3-4F36-B611-927AC041F5D2} = {B78ACB5B-3256-486E-B6D0-510C7DA7FBB0}
{49CF5AB7-304F-4C78-A098-A77B2931F64E} = {84F66485-4391-41C7-89CB-D5006EDF1383}
{357BE857-3E5D-475A-8A03-583F44E6513B} = {9164C50F-E9CA-41BD-BCA9-5F30845FA257}
{4B4667B2-94DB-4A19-8270-0FDB1676C27B} = {357BE857-3E5D-475A-8A03-583F44E6513B}
{400ED5EC-4530-4ADB-8DCE-9D1E6708A1F5} = {49CF5AB7-304F-4C78-A098-A77B2931F64E}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4B3D7591-CFEC-4762-9A07-ABE99938FB77}
Expand Down
6 changes: 6 additions & 0 deletions dev/Kozani/KozaniManagerRuntime/KozaniManagerRuntime.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.

#include "pch.h"

#include "KozaniManagerRuntime.h"
6 changes: 6 additions & 0 deletions dev/Kozani/KozaniManagerRuntime/KozaniManagerRuntime.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
; Copyright (c) Microsoft Corporation. All rights reserved.
; Licensed under the MIT License. See LICENSE in the project root for license information.

EXPORTS
DllCanUnloadNow = WINRT_CanUnloadNow PRIVATE
DllGetActivationFactory = WINRT_GetActivationFactory PRIVATE
24 changes: 24 additions & 0 deletions dev/Kozani/KozaniManagerRuntime/KozaniManagerRuntime.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.

#if !defined(KOZANIMANAGERRUNTIME_H)
#define KOZANIMANAGERRUNTIME_H

#include <appmodel.h>

#if defined(__cplusplus)
#define KOZANIMANAGERRUNTIME_NOEXCEPT noexcept
#else
#define KOZANIMANAGERRUNTIME_NOEXCEPT
#endif // defined(__cplusplus)

//TODO Flat-C API

// C++ friendly APIs
#if defined(__cplusplus)

//TODO C++ API

#endif // defined(__cplusplus)

#endif // KOZANIMANAGERRUNTIME_H
17 changes: 17 additions & 0 deletions dev/Kozani/KozaniManagerRuntime/KozaniManagerRuntime.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.

namespace Microsoft.Kozani.ManagerRuntime
{
[contractversion(1)]
apicontract ManagerRuntimeContract{};

[contract(ManagerRuntimeContract, 1)]
runtimeclass ManagerRuntimeManager
{
/// Get a ManagerRuntime manager for the caller's context.
static ManagerRuntimeManager Open();

void TODO_ReplaceMeWithRealContent();
};
}
6 changes: 6 additions & 0 deletions dev/Kozani/KozaniManagerRuntime/KozaniManagerRuntime.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.

#include <winresrc.h>
#define VERSIONINFO_FILENAME "KozaniManagerRuntime.dll"
#include "eng\common\VersionInfo\AssemblyInfo.ver"
Loading

0 comments on commit 1ee0a65

Please sign in to comment.