GetInterfaceInfo function of win32 api

Benny saretbenny at gmail.com
Thu Jun 8 05:52:43 UTC 2023


On Thursday, 8 June 2023 at 05:42:20 UTC, novice2 wrote:
> On Thursday, 8 June 2023 at 05:29:07 UTC, Benny wrote:
>> Hello,
>
> Hi!
>
>> I'm trying to call the function GetInterfaceInfo
>
> it would be nice to see the code
>
>> didn't work.
>
> it would be nice to see specifics (error code, results, etc)

```

import core.sys.windows.iphlpapi;
import std.stdio;

void main()
{
	auto h = GetInterfaceInfo(null, null);
	writeln("Hello, World!");
}

```
```
app.obj : error LNK2019: unresolved external symbol 
GetInterfaceInfo referenced in function _Dmain
app.exe : fatal error LNK1120: 1 unresolved externals
Error: linker exited with status 1120
```


More information about the Digitalmars-d-learn mailing list