开发者

GetAdaptersInfo (c++)function not working on vista and 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜