自己做的一些笔记,XP以及以后的系统使用;

MSDN

函数:http://msdn.microsoft.com/en-US/library/windows/desktop/aa365915(v=vs.85).aspx

结构:http://msdn.microsoft.com/en-US/library/windows/desktop/aa366058(v=vs.85).aspx

函数:

ULONG WINAPI GetAdaptersAddresses(
_In_ ULONG Family,
_In_ ULONG Flags,
_In_ PVOID Reserved,
_Inout_ PIP_ADAPTER_ADDRESSES AdapterAddresses,
_Inout_ PULONG SizePointer
);

Family:获取的信息类型;AF_UNSPEC 0,ipv4和ipv6;AF_INET 2,ipv4;AF_INET 23,IPV6;

Flags:获取的地址类型;

结构:

AdapterName:网络适配器名称 {B18C6FB2-086A-4FF4-97FB-E565A6268DC1}

05-08 15:51