VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Function to retrieve the Computer Name from a Windows 95/98/NT machine

by Ted Crow (1 Submission)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Mon 4th January 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Function to retrieve the Computer Name from a Windows 95/98/NT machine

Rate Function to retrieve the Computer Name from a Windows 95/98/NT machine



    Dim lpBuff As String * 25
    Dim ret As Long, ComputerName As String
    
    ret = GetComputerName(lpBuff, 25)
    ComputerName = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)

    Get_ComputerName = ComputerName
End Function


Download this snippet    Add to My Saved Code

Function to retrieve the Computer Name from a Windows 95/98/NT machine Comments

No comments have been posted about Function to retrieve the Computer Name from a Windows 95/98/NT machine. Why not be the first to post a comment about Function to retrieve the Computer Name from a Windows 95/98/NT machine.

Post your comment

Subject:
Message:
0/1000 characters