-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 5677497: [Git2Git] Merged PR 5655213: Allow conhost to hand…
…off to registered default app handler Contains: - Delegation Configurator that can lookup/edit/save configuration information to registry - Conhost can lookup the CLSID of a registered default - Conhost has the ability to handoff a starting visible-window interactive session to the registered default - Velocity key since this is a big deal and we want to be careful - IDL for the interface Related work items: MSFT-16458099 Retrieved from https://microsoft.visualstudio.com os.2020 OS official/rs_wdx_dxp_windev 0ca55027d8180fbbaa145f2fe7a15005856c0f7c
- Loading branch information
Showing
25 changed files
with
557 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
DIRS=exe \ | ||
DIRS=proxy \ | ||
exe \ | ||
lib \ | ||
ut_lib \ | ||
ut_host \ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<ProjectGuid>{E437B604-3E98-4F40-A927-E173E818EA4B}</ProjectGuid> | ||
<Keyword>Win32Proj</Keyword> | ||
<RootNamespace>openconsoleproxy</RootNamespace> | ||
<ProjectName>OpenConsoleProxy</ProjectName> | ||
<TargetName>OpenConsoleProxy</TargetName> | ||
<ConfigurationType>Utility</ConfigurationType> | ||
</PropertyGroup> | ||
<Import Project="$(SolutionDir)src\common.build.pre.props" /> | ||
<ItemGroup> | ||
<ClInclude Include="$(IntDir)\IConsoleHandoff.h" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Midl Include="IConsoleHandoff.idl"> | ||
<!-- | ||
In Razzle, IDL files generate %FileName%.h | ||
In Visual Studio, IDL files generate %FileName%_h.h | ||
Visual Studio is easier to override than Razzle. | ||
This has to be built in both the OS and outside, so we | ||
override the easier-to-override side to a uniform name. | ||
--> | ||
<HeaderFileName>IConsoleHandoff.h</HeaderFileName> | ||
<MinimumTargetSystem>NT100</MinimumTargetSystem> | ||
<OutputDirectory>$(IntDir)</OutputDirectory> | ||
</Midl> | ||
</ItemGroup> | ||
<ItemDefinitionGroup> | ||
<ClCompile> | ||
<AdditionalIncludeDirectories>..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
<PrecompiledHeader>NotUsing</PrecompiledHeader> | ||
</ClCompile> | ||
</ItemDefinitionGroup> | ||
<!-- Careful reordering these. Some default props (contained in these files) are order sensitive. --> | ||
<Import Project="$(SolutionDir)src\common.build.post.props" /> | ||
</Project> |
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,26 @@ | ||
import "oaidl.idl"; | ||
import "ocidl.idl"; | ||
|
||
typedef struct _CONSOLE_PORTABLE_ATTACH_MSG | ||
{ | ||
DWORD IdLowPart; | ||
LONG IdHighPart; | ||
ULONG64 Process; | ||
ULONG64 Object; | ||
ULONG Function; | ||
ULONG InputSize; | ||
ULONG OutputSize; | ||
} CONSOLE_PORTABLE_ATTACH_MSG; | ||
|
||
typedef CONSOLE_PORTABLE_ATTACH_MSG* PCONSOLE_PORTABLE_ATTACH_MSG; | ||
typedef const CONSOLE_PORTABLE_ATTACH_MSG* PCCONSOLE_PORTABLE_ATTACH_MSG; | ||
|
||
[ | ||
object, | ||
uuid(2B607BC1-43EB-40C3-95AE-2856ADDB7F23) | ||
] interface IConsoleHandoff : IUnknown | ||
{ | ||
HRESULT EstablishHandoff([in, system_handle(sh_file)] HANDLE server, | ||
[in, system_handle(sh_event)] HANDLE inputEvent, | ||
[in, ref] PCCONSOLE_PORTABLE_ATTACH_MSG msg); | ||
}; |
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,31 @@ | ||
# ------------------------------------- | ||
# Windows Console | ||
# - Console Host COM Proxy | ||
# ------------------------------------- | ||
|
||
# This program provides the COM call and proxy | ||
# information for handing off one console session to another | ||
# capable console host application. | ||
|
||
# ------------------------------------- | ||
# Program Information | ||
# ------------------------------------- | ||
|
||
TARGETNAME = | ||
TARGETTYPE = NOTARGET | ||
|
||
# ------------------------------------- | ||
# Build System Settings | ||
# ------------------------------------- | ||
|
||
MIDL_FLAGS = $(MIDL_FLAGS) | ||
|
||
# ------------------------------------- | ||
# Sources, Headers, and Libraries | ||
# ------------------------------------- | ||
|
||
SOURCES = \ | ||
IConsoleHandoff.idl \ | ||
|
||
INCLUDES = \ | ||
$(INCLUDES); \ |
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,6 @@ | ||
PUBLIC_PASS0_CONSUMES= \ | ||
minkernel\published\base|PASS0 \ | ||
onecore\com\published\idlole\publish|PASS0 \ | ||
onecore\enduser\sql\xml\msxml3\publish|PASS0 \ | ||
onecore\inetcore\published\sdk\inc|PASS0 \ | ||
|
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.