-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force the use of the static pseudoconsole functions in TConn
Fixes #3553.
- Loading branch information
Showing
6 changed files
with
55 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
// This header prototypes the Pseudoconsole symbols from conpty.lib with their original names. | ||
// This is required because we cannot import __imp_CreatePseudoConsole from a static library | ||
// as it doesn't produce an import lib. | ||
// We can't use an /ALTERNATENAME trick because it seems that that name is only resolved when the | ||
// linker cannot otherwise find the symbol. | ||
|
||
#pragma once | ||
|
||
#include <consoleapi.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
HRESULT WINAPI ConptyCreatePseudoConsole(COORD size, HANDLE hInput, HANDLE hOutput, DWORD dwFlags, HPCON* phPC); | ||
|
||
HRESULT WINAPI ConptyResizePseudoConsole(HPCON hPC, COORD size); | ||
|
||
VOID WINAPI ConptyClosePseudoConsole(HPCON hPC); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
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,4 @@ | ||
EXPORTS | ||
CreatePseudoConsole | ||
ResizePseudoConsole | ||
ClosePseudoConsole | ||
CreatePseudoConsole = ConptyCreatePseudoConsole | ||
ResizePseudoConsole = ConptyResizePseudoConsole | ||
ClosePseudoConsole = ConptyClosePseudoConsole |
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