Skip to content

Expose NtCreateNamedPipeFile - #2088

Open
Edgar Andrés Margffoy Tuay (andfoy) wants to merge 2 commits into
microsoft:mainfrom
andfoy:add_NtCreateNamedPipeFile
Open

Expose NtCreateNamedPipeFile#2088
Edgar Andrés Margffoy Tuay (andfoy) wants to merge 2 commits into
microsoft:mainfrom
andfoy:add_NtCreateNamedPipeFile

Conversation

@andfoy

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Comment on lines +488 to +491
//
// use the Win32 API instead
// CreateNamedPipeA
//

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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)

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