summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ntapi/nt_socket.h5
-rw-r--r--include/ntapi/ntapi.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h
index fcf6d96..c984b92 100644
--- a/include/ntapi/nt_socket.h
+++ b/include/ntapi/nt_socket.h
@@ -413,6 +413,11 @@ typedef int32_t __cdecl ntapi_sc_getsockname(
__in uint16_t * addrlen,
__out nt_io_status_block * iosb __optional);
+typedef int32_t __cdecl ntapi_sc_getpeername(
+ __in nt_socket * hssocket,
+ __in nt_sockaddr * addr,
+ __in uint16_t * addrlen,
+ __out nt_io_status_block * iosb __optional);
typedef int32_t __cdecl ntapi_sc_server_accept_connection(
__in nt_socket * hssocket,
diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h
index d6e5f65..17d9871 100644
--- a/include/ntapi/ntapi.h
+++ b/include/ntapi/ntapi.h
@@ -544,6 +544,7 @@ typedef struct _ntapi_vtbl {
ntapi_sc_recv * sc_recv;
ntapi_sc_shutdown * sc_shutdown;
ntapi_sc_getsockname * sc_getsockname;
+ ntapi_sc_getpeername * sc_getpeername;
ntapi_sc_server_accept_connection * sc_server_accept_connection;
ntapi_sc_server_duplicate_socket * sc_server_duplicate_socket;
ntapi_sc_wait * sc_wait;