Announcement

Collapse
No announcement yet.

NetBIOS API - who is connected to my machine

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NetBIOS API - who is connected to my machine

    Can anyone point me in the right direction? I need to find out which users in my Windows LAN are connected to my machine with NetBIOS (ie. theyre browsing my shared filesystem with explorer). My findings have concluded that WNetGetConnection can be used to find out which remote drives youre mapped to, but I haven't been able to work out which API(s) to use to determine which user(s) are connected to my machine,
    does anybody know?


    ------------------
    -

  • #2
    Wayne,

    The following simple Visual Basic code on VBnet may be on the lines on what you're
    looking for..
    http://www.mvps.org/vbnet/code/netwo...ectionenum.htm



    - Nathan

    Comment


    • #3
      In a dos prompt, type

      Net View
      or Net View \\COMPUTERNAME




      ------------------
      Best Regards
      Peter Scheutz
      Best Regards
      Peter Scheutz

      Comment


      • #4
        Nathan, you responded faster than I had time to refresh this page Thanks!! Thats some fascinating code, unfortunately I couldnt get it to work on either my WinNT4 or Win98 system so I'll try it on another system tomorrow.
        Ive solved my problem (well, I haven't ported it to PB yet, but Ive found C source that does what I need to do)
        I found some source called "who.c" at http://faqs.org.ru/progr/windows/win32api2.htm , a Russian API FAQ site with a lot of interesting code, all accompanying text is in Russian but as the code is all English I didn't have any problems getting around there
        Thanks very much,
        Wayne


        ------------------
        -

        Comment


        • #5
          on a related subject, in 1999 i posted some code in the source code forum that lists open files in win95/98. i have not tested it with me.
          http://www.powerbasic.com/support/pb...ad.php?t=22621


          ------------------
          lance
          powerbasic support
          mailto:[email protected][email protected]</a>
          Lance
          mailto:[email protected]

          Comment


          • #6
            I realize it's a coding project but to compare your work with while you are co ding it try this:

            open dos box, type NETSTAT -a


            Walah, there is also NBTSTAT




            ------------------
            Scott
            Scott Turchin
            MCSE, MCP+I
            http://www.tngbbs.com
            ----------------------
            True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

            Comment


            • #7
              Lance, I dont see how thats a related subject, but that open file enumeration code is very cool'n'kinky! It's so fast too, I'll definately find a use for that
              Many thanks again!


              ------------------
              -

              Comment


              • #8
                Can anyone point me in the right direction? I need to find out which users in my Windows LAN are connected to my machine with NetBIOS
                Probably either the Net*() or WNet*() APIs. Watch out for charset, though: The Net*() require using Unicode strings.

                FF.



                ------------------

                Comment


                • #9
                  Originally posted by Wayne Diamond:
                  Lance, I dont see how thats a related subject, but that open file enumeration code is very cool'n'kinky! It's so fast too, I'll definately find a use for that
                  Many thanks again!
                  I guess it's related in the sense that networked PC's may have files open on your 9x box...?!


                  ------------------
                  Lance
                  PowerBASIC Support
                  mailto:[email protected][email protected]</A>
                  Lance
                  mailto:[email protected]

                  Comment

                  Working...
                  X
                  😀
                  🥰
                  🤢
                  😎
                  😡
                  👍
                  👎