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...
|