tags:

views:

130

answers:

1

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 supported by windows 7 and vista. if no what api should i use to get mac address

+2  A: 
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

bdhar
thanx worked on windows 7 but not on vista.is it really support vista?