Results 1 to 4 of 4

Thread: GetComputerName

  1. #1

    Thread Starter
    Lively Member iataman's Avatar
    Join Date
    Jun 2000
    Location
    Turkey
    Posts
    71

    Angry

    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!

  2. #2
    Guest

  3. #3
    New Member
    Join Date
    May 2000
    Location
    Douala
    Posts
    9

    Lightbulb 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.
    Always STL

  4. #4
    Junior Member
    Join Date
    Jul 2000
    Posts
    19
    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
  •  



Click Here to Expand Forum to Full Width