Change The Name of a Computer With Kernel32 Lib

Category:
System/API
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
Use this function to that implements the kernel32 library to change the name of your computer. All you need to test this is a commandButton control and a textBox control.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: