[fpc-pascal] How to list IP and MAC of network adapters on Windows?
Michael Van Canneyt
michael at freepascal.org
Fri Sep 10 12:08:02 CEST 2021
On Fri, 10 Sep 2021, James Richters wrote:
> Well, that sure is a lot simpler than parsing the IPConfig output!
> Is there a way to capture the MAC address this way as well?
I don't know, I never needed that.
>
> uses {$IFDEF MSWINDOWS}Windows, WinSock,{$ENDIF}
>
> Should have a ; at the end instead of a ,
Yes, I simply cut away part of the uses clause which was private to my code.
Michael.
More information about the fpc-pascal
mailing list