From 1717a8ab178466bb73fd4c0a7fba1402df9deef0 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 18 Nov 2022 17:29:49 +0000 Subject: ipc helper interfaces: allow requesting an existing connection. --- include/ntapi/nt_ipc.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/ntapi/nt_ipc.h b/include/ntapi/nt_ipc.h index 9eab304..51a76bc 100644 --- a/include/ntapi/nt_ipc.h +++ b/include/ntapi/nt_ipc.h @@ -60,17 +60,20 @@ typedef int32_t __stdcall ntapi_ipc_create_pipe( typedef int32_t __stdcall ntapi_ipc_connect_by_attr( __out void ** hport, - __in nt_port_attr * attr); + __in nt_port_attr * attr, + __in int fexisting); typedef int32_t __stdcall ntapi_ipc_connect_by_name( __out void ** hport, - __in nt_port_name * name); + __in nt_port_name * name, + __in int fexisting); typedef int32_t __stdcall ntapi_ipc_connect_by_symlink( __out void ** hport, - __in void * hsymlink); + __in void * hsymlink, + __in int fexisting); typedef int32_t __stdcall ntapi_ipc_connect_by_port( @@ -83,7 +86,8 @@ typedef int32_t __stdcall ntapi_ipc_connect_section_by_attr( __in nt_port_attr * attr, __out void ** hsection, __out void ** section_addr, - __out size_t * section_size); + __out size_t * section_size, + __in int fexisting); typedef int32_t __stdcall ntapi_ipc_connect_section_by_name( @@ -91,7 +95,8 @@ typedef int32_t __stdcall ntapi_ipc_connect_section_by_name( __in nt_port_name * name, __out void ** hsection, __out void ** section_addr, - __out size_t * section_size); + __out size_t * section_size, + __in int fexisting); typedef int32_t __stdcall ntapi_ipc_connect_section_by_symlink( @@ -99,7 +104,8 @@ typedef int32_t __stdcall ntapi_ipc_connect_section_by_symlink( __in void * hsymlink, __out void ** hsection, __out void ** section_addr, - __out size_t * section_size); + __out size_t * section_size, + __in int fexisting); typedef int32_t __stdcall ntapi_ipc_connect_section_by_port( -- cgit v1.2.3