forked from microsoft/WindowsAppSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KozaniHostRuntime implementation and FTA and protocol launch support (m…
…icrosoft#3714) * not sure the state of things (microsoft#3612) (microsoft#3613) Co-authored-by: William Cheng <wcheng@ntdev.microsoft.com> * Initial integration 1. Enabled RDC launch to the foreground. 2. Hook up wil logging to trace providers 3. Added KozaniHostRuntime to KozaniManager MSIX package. * HostRuntime integration and FTA impl * FTA launch done - Fixed ref count bugs and added proper cleanup for failure cases. * Implemented FTA and protocol launch support in KozaniRemoteManager * Fixed error code issue * Use app extension to store remote app AUMID * Addressed CR feedbacks. * Fixed build issue in x86 and ARM64 --------- Co-authored-by: William Cheng <wcheng@ntdev.microsoft.com>
- Loading branch information
1 parent
3cd6f77
commit d82f92c
Showing
46 changed files
with
1,479 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) Microsoft Corporation and Contributors. | ||
// Licensed under the MIT License. | ||
|
||
#ifndef __WINRT_WINDOWS_APP_RUNTIME_H | ||
#define __WINRT_WINDOWS_APP_RUNTIME_H | ||
|
||
namespace winrt | ||
{ | ||
// Per https://docs.microsoft.com/windows/uwp/cpp-and-winrt-apis/interop-winrt-abi#convert_from_abi-function | ||
template <typename T> | ||
T convert_from_abi(::IUnknown* from) | ||
{ | ||
T to{ nullptr }; // `T` is a projected type. | ||
|
||
winrt::check_hresult(from->QueryInterface(winrt::guid_of<T>(), | ||
winrt::put_abi(to))); | ||
|
||
return to; | ||
} | ||
|
||
template <typename T> | ||
T convert_from_abi(::IInspectable* from) | ||
{ | ||
T to{ nullptr }; // `T` is a projected type. | ||
|
||
winrt::check_hresult(from->QueryInterface(winrt::guid_of<T>(), | ||
winrt::put_abi(to))); | ||
|
||
return to; | ||
} | ||
} | ||
|
||
#endif // __WINRT_WINDOWS_APP_RUNTIME_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.