I need to launch a rather program from a server from several PCs.  The program needs to know what PC it is running on in order to select several setup parameters.  Thus I am looking for a VI that will give me the local computer's (Host) name.  I have tried the "gethostname" function in the "wsock.dll", but I keep crashing the system.  
 
Thank You.