|
-
Dec 8th, 1999, 05:01 AM
#1
How can I find the computer name which found on "Network -> Identification tab"?
Thanx.
SK
-
Dec 8th, 1999, 05:09 AM
#2
Use the GetComputerName API Function:
Public Declare Function GetComputerName _
Lib "kernel32" Alias "GetComputerNameA" ( _
ByVal lpBuffer As String, _
nSize As Long) As Long
Public Function ComputerName() As String
Dim sName As String
sName = Space(25)
Call GetComputerName(sName, 25)
ComputerName = sName
End Function
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|