OS: Windows, Language: C++
I'm implementing this use case: When a user starts my software, the software needs to know if his/her PC is currently connected to a specified network (e.g. a college campus intranet). Only if yes, some of the software's features are enabled.
I'm new to this area and really cannot tell the reliable programmatic way. Function GetComputerNameEx (https://msdn.microsoft.com/en-us/library/windows/desktop/ms724301%28v=vs.85%29.aspx) seems promising. If this function works for my use case, what data obtained by this function can I rely on?
Thanks in advance!