Y yuzhizhi Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-01 #1 我怎么把局域网上的用户读到我的TreeView上显示出来?
C coolcat Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-01 #2 最简单的办法.. Winexec('Commmand /c net view >c:/tmp.txt',sw_hide); 再把这个文件读出来加到TREEVIEW里..
Y yuzhizhi Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-01 #3 Winexec('Commmand /c net view >c:/tmp.txt',sw_hide); 这个方法不好!因为我只需要网络用户的名字紧此而以!不需要别的!
J jabing Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-02 #5 呵呵!应该是某个域或服务器的用户吧 多个域的话,也只能一个个GET啦 查查WINAPI啦
G gongjin21 Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-02 #6 >>局域网上的用户 如果是指服务器(NT或W2K) 调用netapi32.dll中的NetQueryDisplayInformation的API函数就可以获取用户名了
Y yuzhizhi Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-09 #7 netapi32.dll中的NetQueryDisplayInformation中! 怎么用?能说详细点吗?
Y YB_unique Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-09 #8 既然只是要用户名,那么NetUserEnum() 即可! function NetUserEnum(ServerName: PWideChar; Level, Filter: DWord; var Buffer: Pointer; PrefMaxLen: DWord; var EntriesRead, TotalEntries, ResumeHandle: DWord): LongWord; stdcall; external 'netapi32.dll';
既然只是要用户名,那么NetUserEnum() 即可! function NetUserEnum(ServerName: PWideChar; Level, Filter: DWord; var Buffer: Pointer; PrefMaxLen: DWord; var EntriesRead, TotalEntries, ResumeHandle: DWord): LongWord; stdcall; external 'netapi32.dll';
Z zw84611 Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-09 #9 再做一次广告: http://delphi.mychangshu.com/dispdoc.asp?id=377 有源程序。