Update tanya.net.iface to work on Windows
Needed because 0fcc83d00e removed
tanya.sys.windows.ifdef and tanya.sys.windows.iphlpapi.
			
			
This commit is contained in:
		@@ -22,8 +22,22 @@ import tanya.range;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
version (Windows)
 | 
					version (Windows)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    import tanya.sys.windows.ifdef;
 | 
					    private union NET_LUID_LH { ulong Value, Info; }
 | 
				
			||||||
    import tanya.sys.windows.iphlpapi;
 | 
					    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)
 | 
					else version (Posix)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user