Skip to content

Conversation

@andfoy
Copy link

@andfoy andfoy commented May 31, 2025

This PR adds NtCreateNamedPipeFile (https://learn.microsoft.com/en-us/windows/win32/devnotes/nt-create-named-pipe-file) to the list of available binding signatures, this function is used to provide support for asynchronous access for pseudo-terminals via ConHost: https://github.com/microsoft/terminal/blob/2d64a3a4ab0d0d1c5b9085a022f5319460ef68d7/src/types/utils.cpp#L851

@andfoy andfoy requested a review from mikebattista as a code owner May 31, 2025 02:15
@andfoy
Copy link
Author

andfoy commented May 31, 2025

@microsoft-github-policy-service agree

riverar
riverar previously approved these changes Sep 1, 2025
Comment on lines +488 to +491
//
// use the Win32 API instead
// CreateNamedPipeA
//
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment won't bubble up anywhere useful so you can delete it.

//
__kernel_entry NTSTATUS
NTAPI
NtCreateNamedPipeFile(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this file get clobbered the next time we run UpdateSDK with whatever is really in the SDK?

is this function definition available in a Windows SDK header that we could use / include instead?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs say it lives in ntioapi.h which isn't public. Agree, we should minimally move it to a new header (e.g., \generation\WinSDK\AdditionalHeaders\ntioapi.h)

@riverar riverar self-requested a review October 29, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants