开发者

GetAdaptersInfo (c++)function not working on vista and windows 7

开发者 https://www.devze.com 2023-01-03 04:06 出处:网络
i am using GetAdaptersInfo on windows xp to retrieve mac address.its working well on xp but neither on vista nor on windows 7.

i am using GetAdaptersInfo on windows xp to retrieve mac address.its working well on xp but neither on vista nor on windows 7. Is GetAdaptersInfo support开发者_JAVA技巧ed by windows 7 and vista. if no what api should i use to get mac address


DWORD GetAdaptersInfo(
  PIP_ADAPTER_INFO pAdapterInfo,
  PULONG pOutBufLen
);

How did you allocate memory for pAdapterInfo? Seems that there is some issue with stack allocation of this [in] parameter.

See this

0

精彩评论

暂无评论...
验证码 换一张
取 消