Subj: Computer name from API Section: Windows API To: All Tuesday, September 01, 1998 8:50:02 PM From: Mark W Mansfield, 110633,227 #720198 Is there a way of getting the computer name from a Windows API or VB call? I know that there is a GetComputerName function in the 32 bit API, but I am working in VB 4.0 16-bit. Thanks for help. ----------------------------------------------------------------------------------------------- Subj: Computer name from API Section: Windows API To: Mark W Mansfield, 110633,227 Thursday, September 03, 1998 9:31:31 PM From: Calvin G. Smith, 102226,2127 #720339 Hi Mark! >>> Is there a way of getting the computer name from a Windows API or VB call? I know that there is a GetComputerName function in the 32 bit API, but I am working in VB 4.0 16-bit. <<< Hmmm, I actually use the NetWkstaGetInfo API for that in 32-bit mode. Anyway, you can extract it from the registry, yes? Should be located at: HKEY_LOCAL_MACHINE, "System\CurrentControlSet\Control\ComputerName\ComputerName". Use the RegOpenKey API and the RegQueryValue API to pull the "ComputerName" value down to your app. Calvin Smith - Sr. Visual Basic/MS Access Consultant ******************************************************** http://www.CalvinSmithSoftware.com ********************************************************