On Tue Oct 18 08:40:21 2022 +0000, Jacek Caban wrote:
`CoInitialize()` may fail (eg. for MTAs) and then you will do an unmatched `CoUninitialize()` call. You could check `CoInitialize()` result, but I'm not sure why you use `CLSID_NetworkListManager` at all. Could we just use `GetAdaptersAddresses` directly instead?
Oh, I just wanted to re-use the existing implementation, but I wasn't aware of the pitfalls of CoInitialize. I'll look into the alternative.