Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Unix "Who" equival in VB

Unix "Who" equival in VB

Scheduled Pinned Locked Moved Visual Basic
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AG
    wrote on last edited by
    #1

    Hello, Is there any way to get to know who all are currently logged on to the system? Regards, ~A

    D 1 Reply Last reply
    0
    • A AG

      Hello, Is there any way to get to know who all are currently logged on to the system? Regards, ~A

      D Offline
      D Offline
      David Wengier
      wrote on last edited by
      #2

      Try the GetUserName API call:

      Public Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (lpBuffer As Byte, nSize As Long) As Long

      -- David Wengier Sonork ID: 100.14177 - Ch00k

      A 1 Reply Last reply
      0
      • D David Wengier

        Try the GetUserName API call:

        Public Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (lpBuffer As Byte, nSize As Long) As Long

        -- David Wengier Sonork ID: 100.14177 - Ch00k

        A Offline
        A Offline
        AG
        wrote on last edited by
        #3

        Sorry, This will give the currently logged user. Suppose I am the admin, then I wanted the list of all the users that are logged on to my the domain. I didnt want "who am i" equival but a "who" equival of unix. Thanx and Regards, ~A.

        D 1 Reply Last reply
        0
        • A AG

          Sorry, This will give the currently logged user. Suppose I am the admin, then I wanted the list of all the users that are logged on to my the domain. I didnt want "who am i" equival but a "who" equival of unix. Thanx and Regards, ~A.

          D Offline
          D Offline
          David Wengier
          wrote on last edited by
          #4

          Sorry, must not have read the question properly. Have a look here: http://www.mvps.org/vbnet/code/network/index.html -- David Wengier Sonork ID: 100.14177 - Ch00k

          A 1 Reply Last reply
          0
          • D David Wengier

            Sorry, must not have read the question properly. Have a look here: http://www.mvps.org/vbnet/code/network/index.html -- David Wengier Sonork ID: 100.14177 - Ch00k

            A Offline
            A Offline
            AG
            wrote on last edited by
            #5

            Thanx a lot. ~A.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups