>Can you obtain the ethernet address using native VFP code? I found an article on how to do it in C and noticed that it uses structures. Has anyone done this?
>
The easiest ways are to either use the WinSock Active control to retrieve the MAC address through ActiveX automation, or to dump the output of IPCONFIG /ALL to a file and parse the results on a line-by-line basis (you can issue a command line switch to dump the output to a standard file; IPCONFIG /HELP will provide the basic details.)
Realize that not all systems have real MAC addresses, and you may have more than one MAC address on systems with more than one LAN adapter.
You can access Win32 API calls through VFP using structures built in static memory blocks; you can look at my CLSHEAP library, Paul-Vlad Tatavu's POINTERS class, and especially Christof Lange's STRUCT class to see several approaches to implementing structures beyond the simple declarations available directly through VFP's DECLARE...DLL syntax.