summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-17 19:36:36 -0500
committermidipix <writeonce@midipix.org>2016-12-18 09:38:11 -0500
commit9c3b7ea9b0875423514011a3002d4d8aba888c77 (patch)
treee6356e202d44ee64f9874eaaee8be06fd7b30b7e
parent6c8592e87b3cc45d060b432a00ec0ea162938049 (diff)
downloadntapi-9c3b7ea9b0875423514011a3002d4d8aba888c77.tar.bz2
ntapi-9c3b7ea9b0875423514011a3002d4d8aba888c77.tar.xz
ntapi_sc_sockete(): update to a more caller-friendly signature.
-rw-r--r--include/ntapi/nt_socket.h4
-rw-r--r--src/socket/ntapi_sc_socket_v1.c4
-rw-r--r--src/socket/ntapi_sc_socket_v2.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h
index 977dd17..6491786 100644
--- a/include/ntapi/nt_socket.h
+++ b/include/ntapi/nt_socket.h
@@ -434,8 +434,8 @@ typedef struct _nt_afd_disconnect_info {
/* socket functions */
typedef int32_t __cdecl ntapi_sc_socket(
__out nt_socket * hssocket,
- __in uint16_t domain,
- __in uint16_t type,
+ __in int32_t domain,
+ __in int32_t type,
__in uint32_t protocol,
__in uint32_t desired_access __optional,
__in nt_sqos * sqos __optional,
diff --git a/src/socket/ntapi_sc_socket_v1.c b/src/socket/ntapi_sc_socket_v1.c
index bfdfc83..c9b4519 100644
--- a/src/socket/ntapi_sc_socket_v1.c
+++ b/src/socket/ntapi_sc_socket_v1.c
@@ -26,8 +26,8 @@ typedef struct _nt_afd_socket_ea {
int32_t __cdecl __ntapi_sc_socket_v1(
__out nt_socket * hssocket,
- __in uint16_t domain,
- __in uint16_t type,
+ __in int32_t domain,
+ __in int32_t type,
__in uint32_t protocol,
__in uint32_t desired_access __optional,
__in nt_sqos * sqos __optional,
diff --git a/src/socket/ntapi_sc_socket_v2.c b/src/socket/ntapi_sc_socket_v2.c
index 0f114fe..2fc30e5 100644
--- a/src/socket/ntapi_sc_socket_v2.c
+++ b/src/socket/ntapi_sc_socket_v2.c
@@ -31,8 +31,8 @@ typedef struct _nt_afd_socket_ea {
int32_t __cdecl __ntapi_sc_socket_v2(
__out nt_socket * hssocket,
- __in uint16_t domain,
- __in uint16_t type,
+ __in int32_t domain,
+ __in int32_t type,
__in uint32_t protocol,
__in uint32_t desired_access __optional,
__in nt_sqos * sqos __optional,