tag:blogger.com,1999:blog-5232582584575965466.post3673391554877608976..comments2023-12-28T05:01:02.538-08:00Comments on Delphi Knowledge Base: Getting the IP address and mask for ALL TCP/IP interfacesUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-5232582584575965466.post-7744219541082987402012-07-25T05:41:12.225-07:002012-07-25T05:41:12.225-07:00Your declaration of sockaddr_gen is wrong. It'...Your declaration of sockaddr_gen is wrong. It's a C union (aka a Delphi record with variant...) and you're "filler" using the "char" type will obviosly break in Unicode Delphi (where char is 16 bit wide). If you want a 8 byte filler, use the Byte type explicitly, not char, Delphi is not C...kmorwathhttps://www.blogger.com/profile/09172645304608198662noreply@blogger.com