-
Notifications
You must be signed in to change notification settings - Fork 137
Expose NtCreateNamedPipeFile #2088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@microsoft-github-policy-service agree |
| // | ||
| // use the Win32 API instead | ||
| // CreateNamedPipeA | ||
| // |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
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