VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Retrieve the computer name

by Anonymous (267 Submissions)
Category: Windows System Services
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Thu 17th December 1998
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Retrieve the computer name

Rate Retrieve the computer name



  Dim lngBufSize As Long
  Dim lngStatus As Long
  
  lngBufSize = 255
  strBuffer = String$(lngBufSize, " ")
  lngStatus = GetComputerName(strBuffer, lngBufSize)
  If lngStatus <> 0 Then
     MsgBox ("Computer name is: " & Left(strBuffer, lngBufSize))
  End If

Download this snippet    Add to My Saved Code

Retrieve the computer name Comments

No comments have been posted about Retrieve the computer name. Why not be the first to post a comment about Retrieve the computer name.

Post your comment

Subject:
Message:
0/1000 characters