Suggestion
It seems that the function call NtCreateNamedPipeFile (https://learn.microsoft.com/en-us/windows/win32/devnotes/nt-create-named-pipe-file) is not being declared by any of the bindings, either windows-rs nor windows-sys. This is required to provide support for asynchronous access for pseudo-terminals via ConHost: https://github.com/microsoft/terminal/blob/2d64a3a4ab0d0d1c5b9085a022f5319460ef68d7/src/types/utils.cpp#L851
I would like to help if possible, if any hints are available.