Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding computer host name

Status
Not open for further replies.

sparkyzx

Programmer
Jul 5, 2001
2
GB
Does anyone know how to get the computer host name into vb?? Or anything else that is unique to the computer?

Im trying to pull it out so the program will only run on that machine, any ideas?!

thanks
 
Try the NetUserGetInfo function in Netapi32 api to get info on the current machine and user.

If you only want the computer name, try using GetComputerName from the kernal32 api.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top