cancel
Showing results for 
Search instead for 
Did you mean: 

How FNP fetches username and hostname through native source code?

How FNP fetches username and hostname through native source code?

Question:

How FNP fetches username and hostname through native source code

Answer:

Below is the way FNP fetches username and hostname through native source code. 


                                Windows                             Linux                                     OSX
Host name          gethostname()                  gethostname()                  gethostname()
User name          GetUserNameW()            getuid                                   getuid

Was this article helpful? Yes No
No ratings