AllAPI Network - The KPD-Team

Allapi Network

 API List

API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
This Site
 Search Engine
 Contact Form

Donate to

How to Change the name of your computer

Create a new project and add a module and a form to it.


Put the following declaration in the module:

Declare Function SetComputerName Lib "kernel32" _
Alias "SetComputerNameA" (ByVal lpComputerName As _
String) As Long  


Place a command button on the form and in the click event add the following code:

a$ = "Hello World"
b& = SetComputerName(a$)  

Now take a look at Control Panel/Network/Identification.



Copyright © 1998-2007, The Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at