Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Ethernet adapter information ((MacAddress, IP, etc.) to come out of the list (https://www.delphipraxis.net/199431-ethernet-adapter-information-macaddress-ip-etc-come-out-list.html)

DP News-Robot 23. Jan 2019 07:20

Ethernet adapter information ((MacAddress, IP, etc.) to come out of the list
 
Windows is installed on a network (Ethernet adapter) information comes out. (Implemented in Rio 10.3.) You will need to add Winapi.IPTypes, Winapi.IPHlpAPi uses clause. v a r I: integer; NumInterfaces: DWORD; AdapterInfo: array of TIpAdapterInfo; uses Winapi.IpTypes OutBufLen: ULONG;begin GetNumberOfInterfaces(NumInterfaces); uses Winapi.IpHlpApi SetLength(AdapterInfo, NumInterfaces); OutBufLen := NumInterfaces * SizeOf(TIpAdapterInfo); GetAdaptersInfo(@AdapterInfo[0], OutBufLen); Memo

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:51 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz