borderAndreaVB free resources for Visual Basic developersborder

AndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincani
:: How to change the name of your computer

Author  

Andrea Tincani

Language  

VB5, VB6

Operating Systems  

Windows 95, 98 and NT
API Declarations

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

Module

Public Function SetComputerName(Name as String) as Boolean
    Dim res As Long

    res=SetComputerName(Name)
    SetComputerName=(res<>0)
End Function

:: Navigation

Home

Miscellaneous API Tips

Previous Tip

Next Tip

:: Search this site
Google
:: Related Topics
icon 22-12-2007 Re: Need some help by aredz
icon 28-06-2007 program doesnt work anymore by ck2
icon 15-09-2006 Re: Force Network Shutdown by jahsen
icon 15-09-2006 Re: Force Shutdown a Network Computer by jahsen
icon 13-11-2005 Re: Sum using access field property by yronium
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder