diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-09-23 16:16:33 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-09-23 16:16:33 +0200 |
| commit | 1c57368f43ea2cc093138887daadde2e51533223 (patch) | |
| tree | 07ac366e6983cc5e487952ad2374a799b34792e8 /source | |
| parent | 728eaf88fb376025bd729b7047a7a73553005dd9 (diff) | |
| parent | 1c5e18b92e71b17067415d7ef23e427300b8efd6 (diff) | |
| download | tanya-1c57368f43ea2cc093138887daadde2e51533223.tar.gz | |
Merge remote-tracking branch 'n8sh/windows-iface-mmappool'
Diffstat (limited to 'source')
| -rw-r--r-- | source/tanya/net/iface.d | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/source/tanya/net/iface.d b/source/tanya/net/iface.d index 8e2675a..3bc165a 100644 --- a/source/tanya/net/iface.d +++ b/source/tanya/net/iface.d @@ -22,8 +22,22 @@ import tanya.range; version (Windows)
{
- import tanya.sys.windows.ifdef;
- import tanya.sys.windows.iphlpapi;
+ private union NET_LUID_LH { ulong Value, Info; }
+ private alias NET_LUID = NET_LUID_LH;
+ private alias NET_IFINDEX = uint;
+ private enum IF_MAX_STRING_SIZE = 256;
+ extern(Windows) @nogc nothrow private @system
+ {
+ uint ConvertInterfaceNameToLuidA(const(char)* InterfaceName,
+ NET_LUID* InterfaceLuid);
+ uint ConvertInterfaceLuidToIndex(const(NET_LUID)* InterfaceLuid,
+ NET_IFINDEX* InterfaceIndex);
+ uint ConvertInterfaceIndexToLuid(NET_IFINDEX InterfaceIndex,
+ NET_LUID* InterfaceLuid);
+ uint ConvertInterfaceLuidToNameA(const(NET_LUID)* InterfaceLuid,
+ char* InterfaceName,
+ size_t Length);
+ }
}
else version (Posix)
{
|
