[fpc-pascal] How to list IP and MAC of network adapters on Windows?

James Richters james.richters at productionautomation.net
Fri Sep 10 11:48:55 CEST 2021


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?

uses {$IFDEF MSWINDOWS}Windows, WinSock,{$ENDIF} 

Should have a ; at the end instead of a ,

uses {$IFDEF MSWINDOWS}Windows, WinSock;{$ENDIF}

James



More information about the fpc-pascal mailing list