As per title - can anyone help me?
相关问题
- Is there a Delphi 5 component that can handle .png
- Is there a way to install Delphi 2010 on Windows 2
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- Is TWebBrowser dependant on IE version?
- iOS objective-c object: When to use release and wh
相关文章
- RMI Threads prevent JVM from exiting after main()
- Best way to implement MVVM bindings (View <-> V
- fsc.exe is very slow because it tries to access cr
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- HelpInsight documentation in Delphi 2007
- How many times will TCP retransmit
without knowing almost anything at all about delphi, how about running %system32%\ipconfig.exe /all and parsing the output?
The GetAdaptersAddresses function is the preferred way to obtain adapters information since 2001 with Windows XP.
The adapter's information is returned in the IP_ADAPTER_ADDRESSES structure by the
AdapterAddresses
parameter.Get the JEDI conversion of the Microsoft IP Helper Library from the Project JEDI API Header Library - the file is IPHlpAPI.zip. Unpack the files, you need IpTypes.pas and IpHlpApi.pas. Then you can use something like this:
(All error handling omitted, you should add it of course.)