网络监控的问题。(100分)

  • 主题发起人 firemeteor
  • 开始时间
F

firemeteor

Unregistered / Unconfirmed
GUEST, unregistred user!
在一个基于microsoft windows网络(网上邻居)的网络中,有一台机子作为服务器
向其他机子提供文件服务。客户以guest的身份登陆。我现在做一个监控的程序,想
知道拿台机子开了什么文件。用的api是net api族,也就是lan manager api。但我
没有发现有什么办法可以得到我想要的信息。我现在所能做到最好的只是知道是哪个
用户开了文件,在这种情况下都是清一色的guest。因为‘计算机管理’中的‘会话’
中可以看到每个session开了多少文件,我觉得应该有办法知道这个session开了哪些
文件。在这里请教大家了,希望哪位高手能告诉我一个明确的答案,能或者不能?
在这里先谢过各位了。祝大家新年快乐。

ps:目前的程序是一个远程监控的程序,我不希望做大量的改动。最好能有远程得到信
息的方法。
 
F

firemeteor

Unregistered / Unconfirmed
GUEST, unregistred user!
没有人回吗?斑竹大人!![:(]
 
F

firemeteor

Unregistered / Unconfirmed
GUEST, unregistred user!
很遗憾居然没人对我的帖子做出回应。
可不可以收回分数呢,斑竹大人?
 
S

spidertong

Unregistered / Unconfirmed
GUEST, unregistred user!
D

doll_paul

Unregistered / Unconfirmed
GUEST, unregistred user!
我想得到打印机队列。。。。

GZ~
 
F

firemeteor

Unregistered / Unconfirmed
GUEST, unregistred user!
to dool_paul:
你的问题用share functions 似乎可以实现
Share Functions

NetShareAdd
NetShareCheck
NetShareDel
NetShareGetInfo
NetShareSetInfo

我的问题呢?HELP!!!
 
D

doll_paul

Unregistered / Unconfirmed
GUEST, unregistred user!
to firemeteor,老兄给的这些函数,是得到共享文件夹的信息吧?不是打印队列的!
 
F

firemeteor

Unregistered / Unconfirmed
GUEST, unregistred user!
to doll_paul, 是共享,而不是共享文件夹.printer也算的.

The SHARE_INFO_1 structure contains information about the shared resource,
including name of the resource, type and permissions,
and number of connections.

typedef struct _SHARE_INFO_1 {
LPTSTR shi1_netname;
DWORD shi1_type;
LPTSTR shi1_remark;
} SHARE_INFO_1, *PSHARE_INFO_1, *LPSHARE_INFO_1;


Members

shi1_netname

A Unicode string containing the sharename of a resource.

shi1_type

This member can be one of following types.

Value Meaning
STYPE_DISKTREE Disk drive
STYPE_PRINTQ Print queue
STYPE_DEVICE Communication device
STYPE_IPC Interprocess Communication (IPC)


shi1_remark

Points to a Unicode string containing an optional comment about the shared
resource.



See Also

NetShareEnum, NetShareGetInfo, NetShareSetInfo
 
D

doll_paul

Unregistered / Unconfirmed
GUEST, unregistred user!
to firemeteor,有没有可以得到打印对列的源码?急事,300分,谢谢!
 
F

firemeteor

Unregistered / Unconfirmed
GUEST, unregistred user!
不好意思了,这方面的东西我也没写过,我只是刚好看到上面的api罢了。
不过推荐你去找找ntset控件看看,可能会有些启发。
 
F

firemeteor

Unregistered / Unconfirmed
GUEST, unregistred user!
我希望结束这个问题,请斑竹帮忙发分吧,我实在不知道怎么分……
当然,如果能收回最好……
 
顶部