[IPHLPAPI_WINETEST][IPHLPAPI] Sync iphlpapi_winetest to wine-10.0 (#8309)

- [IPHLPAPI_WINETEST] Sync to wine-10.0
- [IPHLPAPI] Add stubs for Vista+ functions so these functions can link properly when DLL_EXPORT_VERSION >= 0x600
This commit is contained in:
Carl J. Bialorucki
2025-10-09 14:34:32 -05:00
committed by GitHub
parent 70406e0ccb
commit fe497a2b23
3 changed files with 2615 additions and 1061 deletions

View File

@@ -12,6 +12,20 @@
@ stdcall AllocateAndGetUdpTableFromStack(ptr long long long)
@ stdcall CancelIPChangeNotify(ptr)
@ stub CancelSecurityHealthChangeNotify
@ stdcall -stub -version=0x600+ ConvertGuidToStringA(ptr ptr long)
@ stdcall -stub -version=0x600+ ConvertGuidToStringW(ptr ptr long)
@ stdcall -stub -version=0x600+ ConvertInterfaceAliasToLuid(wstr ptr)
@ stdcall -stub -version=0x600+ ConvertInterfaceGuidToLuid(ptr ptr)
@ stdcall -stub -version=0x600+ ConvertInterfaceIndexToLuid(long ptr)
@ stdcall -stub -version=0x600+ ConvertInterfaceLuidToAlias(ptr ptr long)
@ stdcall -stub -version=0x600+ ConvertInterfaceLuidToGuid(ptr ptr)
@ stdcall -stub -version=0x600+ ConvertInterfaceLuidToIndex(ptr ptr)
@ stdcall -stub -version=0x600+ ConvertInterfaceLuidToNameA(ptr ptr long)
@ stdcall -stub -version=0x600+ ConvertInterfaceLuidToNameW(ptr ptr long)
@ stdcall -stub -version=0x600+ ConvertInterfaceNameToLuidA(str ptr)
@ stdcall -stub -version=0x600+ ConvertInterfaceNameToLuidW(wstr ptr)
@ stdcall -stub -version=0x600+ ConvertLengthToIpv4Mask(long ptr)
@ stdcall -stub -version=0x600+ ConvertStringToGuidW(wstr ptr)
@ stdcall CreateIpForwardEntry(ptr)
@ stdcall CreateIpNetEntry(ptr)
@ stdcall CreateProxyArpEntry(long long long)
@@ -23,6 +37,7 @@
@ stdcall EnableRouter(ptr ptr)
@ stdcall FlushIpNetTable(long)
@ stub FlushIpNetTableFromStack
@ stdcall -stub -version=0x600+ FreeMibTable(ptr)
@ stdcall GetAdapterIndex(wstr ptr)
@ stdcall GetAdapterOrderMap()
@ stdcall GetAdaptersAddresses(long long ptr ptr ptr)
@@ -32,6 +47,7 @@
@ stub GetBestInterfaceFromStack
@ stdcall GetBestRoute(long long long)
@ stub GetBestRouteFromStack
@ stdcall -stub -version=0x600+ GetCurrentThreadCompartmentId()
@ stdcall GetExtendedTcpTable(ptr ptr long long long long)
@ stdcall GetExtendedUdpTable(ptr ptr long long long long)
@ stdcall GetFriendlyIfIndex(long)
@@ -40,8 +56,12 @@
@ stub GetIcmpStatsFromStack
@ stub GetIcmpStatsFromStackEx
@ stdcall GetIfEntry(ptr)
@ stdcall -stub -version=0x600+ GetIfEntry2(ptr)
@ stdcall -stub -version=0xA00+ GetIfEntry2Ex(long ptr)
@ stub GetIfEntryFromStack
@ stdcall GetIfTable(ptr ptr long)
@ stdcall -stub -version=0x600+ GetIfTable2(ptr)
@ stdcall -stub -version=0x600+ GetIfTable2Ex(long ptr)
@ stub GetIfTableFromStack
@ stub GetIgmpList
@ stdcall GetInterfaceInfo(ptr ptr)
@@ -49,8 +69,10 @@
@ stub GetIpAddrTableFromStack
@ stdcall GetIpErrorString(long ptr ptr)
@ stdcall GetIpForwardTable(ptr ptr long)
@ stdcall -stub -version=0x600+ GetIpForwardTable2(long ptr)
@ stub GetIpForwardTableFromStack
@ stdcall GetIpNetTable(ptr ptr long)
@ stdcall -stub -version=0x600+ GetIpNetTable2(long ptr)
@ stub GetIpNetTableFromStack
@ stdcall GetIpStatistics(ptr)
@ stdcall GetIpStatisticsEx(ptr long)
@@ -78,6 +100,8 @@
@ stub GetUdpStatsFromStackEx
@ stdcall GetUdpTable(ptr ptr long)
@ stub GetUdpTableFromStack
@ stdcall -stub -version=0x600+ GetUnicastIpAddressEntry(ptr)
@ stdcall -stub -version=0x600+ GetUnicastIpAddressTable(long ptr)
@ stdcall GetUniDirectionalAdapterInfo(ptr ptr)
@ stdcall Icmp6CreateFile()
@ stdcall Icmp6ParseReplies(ptr long)
@@ -87,6 +111,8 @@
@ stdcall IcmpParseReplies(ptr long)
@ stdcall IcmpSendEcho2(ptr ptr ptr ptr long ptr long ptr ptr long long)
@ stdcall IcmpSendEcho(ptr long ptr long ptr ptr long long)
@ stdcall -stub -version=0x600+ if_indextoname(long ptr)
@ stdcall -stub -version=0x600+ if_nametoindex(str)
@ stub InternalCreateIpForwardEntry
@ stub InternalCreateIpNetEntry
@ stub InternalDeleteIpForwardEntry

View File

@@ -1,8 +1,30 @@
add_definitions(-D__ROS_LONG64__)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/wine)
add_executable(iphlpapi_winetest iphlpapi.c testlist.c)
target_link_libraries(iphlpapi_winetest wine)
set_module_type(iphlpapi_winetest win32cui)
add_importlibs(iphlpapi_winetest ws2_32 msvcrt kernel32 ntdll)
add_importlibs(iphlpapi_winetest iphlpapi ws2_32 msvcrt kernel32 ntdll)
add_rostests_file(TARGET iphlpapi_winetest)
if(MSVC)
target_compile_options(iphlpapi_winetest PRIVATE
/wd4024
/wd4047
/wd4133
/wd4477)
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_compile_options(iphlpapi_winetest PRIVATE
-Wno-format
-Wno-int-conversion
-Wno-incompatible-pointer-types)
endif()
target_compile_definitions(iphlpapi_winetest PRIVATE
WINETEST_USE_DBGSTR_LONGLONG
__WINE_WINSOCKAPI_STDLIB_H
strcasecmp=_stricmp)

File diff suppressed because it is too large Load Diff