Results 1 to 5 of 5

Thread: [RESOLVED] Windows Client informiation retrieval...

  1. #1

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Resolved [RESOLVED] Windows Client informiation retrieval...

    How Can I get the following from a computer using VB6?


    domain, user id, machine name, machine IP

    any APIs I can use?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Windows Client informiation retrieval...

    For UserID and Machine name, see the "API" section of our Classic VB FAQs (in the FAQ forum, which is shown near the top of our home page)

    For the others, I would recommend a search of the API forum, or this one.

  3. #3

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Windows Client informiation retrieval...

    Oh never mind... I got it through...

    Code:
    domain = Environ("USERDOMAIN")
        userId = Environ("USERNAME")
        machineName = Environ("COMPUTERNAME")
    and IpAddress through the code here

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Windows Client informiation retrieval...

    While simple, Environ is not a particularly good idea - it can be edited by the user or other programs, so may not actually have the right info.

  5. #5

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Windows Client informiation retrieval...

    The use for this app I'm making is well simple I suppose.
    So I'll definitely come back here if the user comes back and says some data was changed.

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