# inet\_pton

```csharp
[DllImport("ws2_32.dll", SetLastError = true)]
public static extern int inet_pton(
   int Family,
   string pStringBuf,
   IntPtr pAddrBuf
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_pton)
