check if remote computer exists
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
How do I check if "\\Computer42" exists. I want to check before I work on some files that are located on a share on that machine.
How about
NetServerGetInfo(L"Computer42", 100, ...)
? It will returnERROR_BAD_NETPATH
if the machine does not exist.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
How about
NetServerGetInfo(L"Computer42", 100, ...)
? It will returnERROR_BAD_NETPATH
if the machine does not exist.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow