Advertisement
Guest User

findName

a guest
Oct 25th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. inline void computer::findName()
  2. {
  3.     DWORD IP = inet_addr(Info.IP_address);
  4.     LPHOSTENT hn;
  5.     hn = gethostbyaddr((LPSTR)&IP, 4, PF_INET);
  6.     this->Info.Name = hn->h_name;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement