-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing functions from iphlpapi.dll
#134
Comments
I added those two functions to #if (YY_Thunks_Target < __WindowsNT6)
__DEFINE_THUNK(
iphlpapi,
8,
NETIO_STATUS,
NETIOAPI_API_,
CancelMibChangeNotify2,
_In_ HANDLE notificationHandle
)
{
if (const auto _pfnCancelMibChangeNotify2 = try_get_CancelMibChangeNotify2())
{
return _pfnCancelMibChangeNotify2(notificationHandle);
}
return STATUS_NOT_IMPLEMENTED;
}
#endif
#if (YY_Thunks_Target < __WindowsNT6)
__DEFINE_THUNK(
iphlpapi,
8,
NETIO_STATUS,
NETIOAPI_API_,
NotifyIpInterfaceChange,
_In_ ADDRESS_FAMILY family,
_In_ PIPINTERFACE_CHANGE_CALLBACK callback,
_In_opt_ PVOID callerContext,
_In_ BOOLEAN initialNotification,
_Out_ HANDLE* notificationHandle
)
{
if (const auto _pfnNotifyIpInterfaceChange = try_get_NotifyIpInterfaceChange())
{
return _pfnNotifyIpInterfaceChange(family, callback, callerContext, initialNotification, notificationHandle);
}
return NO_ERROR;
}
#endif
} Then I'm trying to build my simple rust project pointing to a patched YY-Thunk and getting this error:
It wasn't failing with non patched version during build/link, but failed during runtime on windows xp. thanks |
@armed Update like this __DEFINE_THUNK(
iphlpapi,
4,
NETIO_STATUS,
NETIOAPI_API_,
CancelMibChangeNotify2,
_In_ HANDLE notificationHandle
)
__DEFINE_THUNK(
iphlpapi,
20,
NETIO_STATUS,
NETIOAPI_API_,
NotifyIpInterfaceChange,
_In_ ADDRESS_FAMILY family,
_In_ PIPINTERFACE_CHANGE_CALLBACK callback,
_In_opt_ PVOID callerContext,
_In_ BOOLEAN initialNotification,
_Out_ HANDLE* notificationHandle
)
|
@mingkuang-Chuyu thanks, what those 4 and 20 sizes mean? Where I can look them up for future patches? |
this is |
Ok got ya, those numbers are stack sizes. Initially I thought that it is a return type size. |
Hello, just discovered this tool. Its great.
1.1.5-Beta2
.Report By YY.Depends.Analyzer (Target:5.1.2600-x86)
iphlpapi.dll
The text was updated successfully, but these errors were encountered: