Created
October 24, 2016 18:04
-
-
Save kennykerr/22eab94df12ef3a3169932f5f6b790f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma comment(lib, "windowsapp") | |
#include "winrt/Windows.Networking.Connectivity.h" | |
using namespace winrt; | |
using namespace Windows::Networking; | |
using namespace Windows::Networking::Connectivity; | |
int main() | |
{ | |
initialize(); | |
for (HostName const & name : NetworkInformation::GetHostNames()) | |
{ | |
printf("%ls\n", name.ToString().c_str()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment