Hi Elvis,
Something is always reported. Either ERROR_SUCCESS (0) or some other
value
when API function return. So what is it?
What about other values are there some filled correctly when function
return?
FYI:
If you need real hardware MAC value then talk to NIC driver itself and
use
OID_802_3_PERMANENT_ADDRESS.
All API funtion will return value reported by OID_802_3_CURRENT_ADDRESS
http://msdn.microsoft.com/library/d..._90351e04-5de8-4491-ae8e-5935ecc1b68d.xml.asp
Regards,
Slobodan
Hi,
No error code is reported, returned values (eg MacAddress, DNS Server
list,
Gareway) etc come up blank. The API call itself does not fail. The
full
copy
of xp on the system gives all the correct information.
I am using minlogon, nforce2 network drivers (MCP), and a dhcp server.
I
have network access from the machine, and ipconfig returns normal
values.
Does the function call use WMI, which i am not using? From what i read
it
doesnt, but you can never judge dependencies ...
ta
elvis
:
Hi Elvis,
How about giving us error value returned by GetAdaptersInfo? This
would
be a good start.
Also check if your network cable is plugged in and read trough:
http://groups.google.com/groups?hl=...a=group=microsoft.public.windowsxp.embedded.*
Regards,
Slobodan
PS:
Let us know what the problem was.
Hi,
I am using the
Public Declare Function GetAdaptersInfo Lib "IPHlpApi.dll" _
(IpAdapterInfo As Any, pOutBufLen As Long) As Long
API call, which on my full system will return the mac address of
the
machine
in the data structure, but returns blank (as are most of the other
entries)
on my embedded system.
Am i missing a component?
Cheers elvis