From f4cde9cef995d0beedb9b1599a05f38bf915eea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Fri, 7 Nov 2025 11:22:55 +0100 Subject: [PATCH] Fix string type definitions for InetNtop function Unicode uses wide characters, ANSI regular chars. --- sdk-api-src/content/ws2tcpip/nf-ws2tcpip-inetntopw.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk-api-src/content/ws2tcpip/nf-ws2tcpip-inetntopw.md b/sdk-api-src/content/ws2tcpip/nf-ws2tcpip-inetntopw.md index d190339815de..3efc9b2e25d1 100644 --- a/sdk-api-src/content/ws2tcpip/nf-ws2tcpip-inetntopw.md +++ b/sdk-api-src/content/ws2tcpip/nf-ws2tcpip-inetntopw.md @@ -173,9 +173,9 @@ If the Family parameter specified is AF_INET6, then the pAddrpStringBuf parameter is not large enough to receive the string representation of the IP address, InetNtop returns ERROR_INVALID_PARAMETER. -When UNICODE or _UNICODE is defined, InetNtop is defined to InetNtopW, the Unicode version of this function. The pStringBuf parameter is defined to the PSTR data type. +When UNICODE or _UNICODE is defined, InetNtop is defined to InetNtopW, the Unicode version of this function. The pStringBuf parameter is defined to the PWSTR data type. -When UNICODE or _UNICODE is not defined, InetNtop is defined to InetNtopA, the ANSI version of this function. The ANSI version of this function is always defined as inet_ntop. The pStringBuf parameter is defined to the PWSTR data type. +When UNICODE or _UNICODE is not defined, InetNtop is defined to InetNtopA, the ANSI version of this function. The ANSI version of this function is always defined as inet_ntop. The pStringBuf parameter is defined to the PSTR data type. The IN_ADDR structure is defined in the Inaddr.h header file.