Page 1 of 1

DNS

PostPosted: Thu Mar 28, 2024 12:00 pm
by Natter
Hi,

DNS is registered on the computer. Is it possible to read their values from FWH ?

Re: DNS

PostPosted: Thu Mar 28, 2024 1:31 pm
by karinha

Re: DNS

PostPosted: Thu Mar 28, 2024 9:05 pm
by nageswaragunupudi
Code: Select all  Expand view
  WSAStartup()
   ? GETHOSTNAME()   // Name of your PC
   ? GETHOSTBYNAME( GETHOSTNAME() ) // Your IP address on your local network
   WsaCleanUp()
 

Re: DNS

PostPosted: Fri Mar 29, 2024 7:49 am
by Natter
Thank you, Rao! What does the WSACleanup() function do ?

Re: DNS

PostPosted: Fri Mar 29, 2024 7:53 am
by Antonio Linares
WSACleanup() is responsible for performing cleanup tasks when your program is finished using Winsock functionality.

Unloads Winsock DLLs: When called, WSACleanup() typically unloads any protocol-specific helper DLLs (Dynamic Link Libraries) that were loaded during the initialization process using WSAStartup(). These DLLs provide support for specific network protocols like TCP/IP.

Cancels Pending Calls (with caution): It's important to note that WSACleanup() cancels any pending blocking or asynchronous Winsock calls issued by any thread in your application. This cancellation happens without notification messages or event object signaling, which could potentially lead to unexpected behavior if not handled carefully.

Re: DNS

PostPosted: Fri Mar 29, 2024 8:26 am
by Natter
Thanks, I get it !