c++ - Programmatic way to see if a PC is connected to a specified network -
os: windows, language: c++
i'm implementing use case: when user starts software, software needs know if his/her pc connected specified network (e.g. college campus intranet). if yes, of software's features enabled.
i'm new area , cannot tell reliable programmatic way. function getcomputernameex (https://msdn.microsoft.com/en-us/library/windows/desktop/ms724301%28v=vs.85%29.aspx) seems promising. if function works use case, data obtained function can rely on?
thanks in advance!
one of more reliable indicators presence of mac addresses: these visible inside lan, not on global internet. on nat'ted ipv4 networks mac address globally unique.
on windows can try sendarp
Comments
Post a Comment