You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The windows::Win32::NetworkManagement::IpHelper::FreeMibTable function frees the memory correctly, but always returns an error:
thread 'main' panicked at src\main.rs:12:41:
called `Result::unwrap()` on an `Err` value: Error { code: HRESULT(0x80070001), message: "Incorrect function." }
Summary
The
windows::Win32::NetworkManagement::IpHelper::FreeMibTable
function frees the memory correctly, but always returns an error:It seems that the function return
void
in the C API, but the wrapper inwindows-rs
returns aResult
:https://learn.microsoft.com/en-us/windows/win32/api/netioapi/nf-netioapi-freemibtable
https://learn.microsoft.com/en-us/windows/win32/api/netioapi/nf-netioapi-getunicastipaddresstable#examples
Crate manifest
Crate code
The text was updated successfully, but these errors were encountered: