|
-
Jun 27th, 2000, 06:17 AM
#1
Thread Starter
Lively Member
how does GetComputerName works??
its GetComputerName(Buffer, Length) as long
i've tried everything (nearly everything)
but i can't get the x@!x'x name!
-
Jun 27th, 2000, 06:21 AM
#2
-
Jun 29th, 2000, 12:21 AM
#3
New Member
GetComputerName
This is an example :
in the module,declare the function like this:
Public Declare Function GetComputerName Lib "kernel32" Alias _
"GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long.
form_load()
dim retval as long,PCname as string
PCName = space(255)
retval=GetComputerName(PCName,255)
PCName=Left(PCName, InStr(PCName, vbNullChar) - 1)
msgbox PCName
end sub
'Excuse me but there is no comment.
I think I have help you
Regards,
Supera.
-
Jul 6th, 2000, 05:18 PM
#4
Junior Member
enviorn$("COMPUTERNAME") thats easier ;]
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
|