From a026f8e08d2a448e0e6ae6cf3d499029e7768625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Andr=C3=A9s=20Margffoy=20Tuay?= Date: Fri, 30 May 2025 21:13:56 -0500 Subject: [PATCH 1/2] Expose NtCreateNamedPipeFile --- .../WinSDK/Partitions/WinProg/settings.rsp | 1 + .../WinSDK/RecompiledIdlHeaders/um/winternl.h | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/generation/WinSDK/Partitions/WinProg/settings.rsp b/generation/WinSDK/Partitions/WinProg/settings.rsp index 2195b42cb..57be4141a 100644 --- a/generation/WinSDK/Partitions/WinProg/settings.rsp +++ b/generation/WinSDK/Partitions/WinProg/settings.rsp @@ -12,6 +12,7 @@ _THREADINFOCLASS _UNICODE_STRING NtClose NtCreateFile +NtCreateNamedPipeFile NtDeviceIoControlFile NtNotifyChangeMultipleKeys NtOpenFile diff --git a/generation/WinSDK/RecompiledIdlHeaders/um/winternl.h b/generation/WinSDK/RecompiledIdlHeaders/um/winternl.h index 2052f1df9..8c2a445c1 100644 --- a/generation/WinSDK/RecompiledIdlHeaders/um/winternl.h +++ b/generation/WinSDK/RecompiledIdlHeaders/um/winternl.h @@ -485,6 +485,29 @@ NtOpenFile ( IN ULONG OpenOptions ); +// +// use the Win32 API instead +// CreateNamedPipeA +// +__kernel_entry NTSTATUS +NTAPI +NtCreateNamedPipeFile( + OUT PHANDLE FileHandle, + IN ULONG DesiredAccess, + IN POBJECT_ATTRIBUTES ObjectAttributes, + OUT PIO_STATUS_BLOCK IoStatusBlock, + IN ULONG ShareAccess, + IN ULONG CreateDisposition, + IN ULONG CreateOptions, + IN ULONG NamedPipeType, + IN ULONG ReadMode, + IN ULONG CompletionMode, + IN ULONG MaximumInstances, + IN ULONG InboundQuota, + IN ULONG OutboundQuota, + IN PLARGE_INTEGER DefaultTimeout OPTIONAL +); + // // use the Win32 API instead // N/A From f938fcdf3555f0d36eec99c69f2ed1f04a875bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Andr=C3=A9s=20Margffoy=20Tuay?= Date: Tue, 2 Sep 2025 10:46:46 -0500 Subject: [PATCH 2/2] Remove extra comment --- generation/WinSDK/RecompiledIdlHeaders/um/winternl.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/generation/WinSDK/RecompiledIdlHeaders/um/winternl.h b/generation/WinSDK/RecompiledIdlHeaders/um/winternl.h index 8c2a445c1..8bfdf2da4 100644 --- a/generation/WinSDK/RecompiledIdlHeaders/um/winternl.h +++ b/generation/WinSDK/RecompiledIdlHeaders/um/winternl.h @@ -450,10 +450,7 @@ NtClose ( IN HANDLE Handle ); -// -// use the Win32 API instead -// CreateFile -// + __kernel_entry NTSTATUS NTAPI NtCreateFile (