Therefore, incorrect parms, passing an unallocated pointer by value, or perhaps no memory left .
[edit]Here's your problemo:
It should be:Code:DWORD status=GetAdaptersInfo(Adap,&len)
P.S. And maybe len should equal sizeof(structname) rather than sizeof(varname).Code:DWORD status=GetAdaptersInfo(Adap,len)
If I'm wrong, please tell me, and I'll look again.
[/edit]