change computer name

October 22, 2008 by admin  
Filed under Visual Basic

change computer name using Visual Basic

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

Dim strComputerName as string
Dim lngReturn as Long

strComputerName = "New name "
lngReturn = SetComputerName(strComputerName)

Related posts:

  1. change drive name Private Declare Function SetVolumeLabelA Lib “kernel32″ _ (ByVal lpRootPathName As...
  2. Change the windows wallpaper This Visual Basic example will allow you to change the...
  3. get the computer name This example will get the computer name #include <stdio.h> #include...
  4. rectangular form example this example shows how to create a rectangular form in...
  5. Get screen resolution with Visual Basic This Visual Basic example will find out your current screen...

Related posts brought to you by Yet Another Related Posts Plugin.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!