Get your Computer name using GetComputerName API
by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 15th December 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Get your Computer name using GetComputerName API
Rate Get your Computer name using GetComputerName API
Dim a As String * 256
x = GetComputerName(a, 256)
MsgBox Left(a, InStr(a, Chr(0)) - 1)
End
End Sub
Download this snippet
Add to My Saved Code
Get your Computer name using GetComputerName API Comments
No comments have been posted about Get your Computer name using GetComputerName API. Why not be the first to post a comment about Get your Computer name using GetComputerName API.
Post your comment