Quote Originally Posted by kawk
Therefore, incorrect parms, passing an unallocated pointer by value, or perhaps no memory left .

[edit]Here's your problemo:

DWORD status=GetAdaptersInfo(Adap,&len)
It should be:
DWORD status=GetAdaptersInfo(Adap,len)
P.S. And maybe len should equal sizeof(structname) rather than sizeof(varname).

If I'm wrong, please tell me, and I'll look again.
Were you really so busy at the time you posted that post that you asked me to not pass by a reference but incorectly by value instead ??? That won't work. Even though I get sizeof a struct, what is going to change then ? Nothing at all

It just aborts while executing and the error is just as mentioned