From 4192289efd809a11ae1d29a1e31a0b55930ace8b Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 16 Jun 2016 13:23:50 -0400 Subject: __ntapi_sc_getsockopt(): initial implementation and integration. --- include/ntapi/nt_socket.h | 9 +++++++++ include/ntapi/ntapi.h | 1 + 2 files changed, 10 insertions(+) (limited to 'include') diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h index 1f8dd14..d56f370 100644 --- a/include/ntapi/nt_socket.h +++ b/include/ntapi/nt_socket.h @@ -518,6 +518,15 @@ typedef int32_t __cdecl ntapi_sc_setsockopt( __out nt_io_status_block * iosb __optional); +typedef int32_t __cdecl ntapi_sc_getsockopt( + __in nt_socket * hssocket, + __in int32_t level, + __in int32_t optname, + __out void * optval, + __in uint32_t optlen, + __out nt_io_status_block * iosb); + + typedef int32_t __cdecl ntapi_sc_wait(nt_socket * hssocket, nt_iosb * iosb, nt_timeout * timeout); #endif diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h index 904a563..054d66a 100644 --- a/include/ntapi/ntapi.h +++ b/include/ntapi/ntapi.h @@ -548,6 +548,7 @@ typedef struct _ntapi_vtbl { ntapi_sc_server_accept_connection * sc_server_accept_connection; ntapi_sc_server_duplicate_socket * sc_server_duplicate_socket; ntapi_sc_setsockopt * sc_setsockopt; + ntapi_sc_getsockopt * sc_getsockopt; ntapi_sc_wait * sc_wait; /* nt_mount.h */ -- cgit v1.2.3