Sep 26, 2001 #1 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
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
Sep 26, 2001 #2 techshoot Programmer Aug 25, 2001 173 US 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. http://www.ktech-usa.com Upvote 0 Downvote
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. http://www.ktech-usa.com