Solved

nbtstat tool (netbios?)

Posted on 2002-06-25
7
527 Views
Last Modified: 2010-04-04
If in win NT or win 2k you type "nbtstat -a hostname" in cmdline, it tells you who is currently logged on to that particular machine.

Is there a way to do this programatically using some API calls? Bearing in mind that it has to work on User level privalages on Win 2K.


thanks
0
Comment
Question by:barbourwill
7 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 500 total points
ID: 7108269
check out: http://www.xploiter.com/tambu/
there are a few utilities and source code about your problem

you could also call "nbtstat -a hostname > tempfile" with ShellExecute
then load the contents of the file in a memo or sumtin like that
then delete the tempfile :)

also check out JEDI JCL library
it has GetMacAddresses and some other usefull functions
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7108452
maybe some additional info from MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/ntlmapi2_6msv.asp
check out the other Net* functions
0
 
LVL 7

Expert Comment

by:Cynna
ID: 7116472
barbourwill,

You could also find this usefull (free & source):

http://www.sysinternals.com/ntw2k/freeware/psloggedon.shtml
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 21

Expert Comment

by:ziolko
ID: 8731658
begin with: NetGroupEnum, NetLocalGroupEnum, NetLocalGroupGetMembers, NetGroupGetUsers, NetWkstaUserEnum, NetQueryDisplayInformation
ziolko.
0
 
LVL 21

Expert Comment

by:ziolko
ID: 8731671
ooops sorry wrong question.
ziolko.
0
 

Expert Comment

by:CleanupPing
ID: 9343163
barbourwill:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9453633
barbourwill,
No comment has been added lately (17 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to Lee_Nover http:#7108269

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Printing problem 2 102
Graphics32 under Delphi 10.1 Berlin 2 99
Tidtcpserver listening on multiports? 1 35
Wincontrol not (correctly) drawn 15 40
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question