This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3
- From: Biswapriyo Nath <nathbappai at gmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Sun, 1 Sep 2019 12:00:32 +0530
- Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3
- References: <announce.20190829122237.GZ11632@calimero.vinschen.de> <CALK-3mLPXAcjZdftE_L-YwneyM79GBEt8c1nyVTisjKp0abCUg@mail.gmail.com> <20190830075523.GB27273@calimero.vinschen.de> <20190831032003.d19fb7060c632bb51777c0de@nifty.ne.jp> <CALK-3mKnHy5tGzi4kkf7CZ4m-6x1fGwBsk=bc8Jv1KFoU_reHA@mail.gmail.com> <20190831131814.2f6c9969a4380a457e61d91b@nifty.ne.jp>
To Corinna Vinschen:
> We can only use what's part of the current w32api-headers package.
I occasionally contribute to mingw-w64 repository. Is there anything I can
do so that cygwin uses latest headers and libraries from mingw-w64?
To Takashi Yano:
> Then, is it possible to DuplicateHandle() for three handles in HPCON to
other process which calls ioctl() with new HPCON?
** THE FOLLOWING PROCEDURE USES UNDOCUMENTED AND UNSTABLE CODE **
To use HPCON in another process, first cast it to a pointer of struct of
three handles as below:
struct HPCON_INTERNAL {
HANDLE hWritePipe;
HANDLE hConDrvReference;
HANDLE hConHostProcess;
};
HPCON hpCon;
HRESULT hRes = CreatePseudoConsole(consoleSize, hPipePTYIn,
hPipePTYOut, 0, &hpCon);
HPCON_INTERNAL *hpConInt = hpCon;
Then **inherit** and use hpConInt->hWritePipe to write the resize signal.
Get detail information about that buffer here[1]. Sample in my repo[2].
[1]:
https://github.com/microsoft/terminal/blob/master/src/host/PtySignalInputThread.cpp
[2]: https://github.com/Biswa96/wslbridge2/blob/master/rawpty/rawpty.cpp
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple