Closed Cinimajig closed 1 week ago
Ah, sorry for the confusion. In this example, you will need:
"Win32_System_Com",
"Win32_Networking_NetworkListManager",
We're still working on the best way to expose all features required at all levels of the type hierarchy, without bloating up the docs, features index, crate, etc.
But I already have that... You can see them in the Crate Manifest.
Oh my mistake, I missed your full sample!
So the error is:
error[E0599]: no method named `GetName` found for reference `&Networking::NetworkListManager::INetworkConnection` in the current scope
INetworkConnection
doesn't have a GetName
method.
https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Networking/NetworkListManager/struct.INetworkConnection.html
Did you mean for let name = connection.GetName()?;
to be let name = network.GetName()?;
instead?
Oh wownyeah. Totally missed that. My bad 😅
Will close this one as fixed then. Have fun!
Summary
I'll use
INetwork::GetName
as en example.I was trying to call the above method on the
INetwork
interface, but it does not exist. I then looked up the function on windows-docs-rs, but I cant see what feature I'm missing to use it.I then tried to find the interface on the feature searcher, but it does not mention methods, only the interface itself... How are we supposed to find this information?
Crate manifest
Crate code