开发者

How to obtain a list of accesible named pipes on remote server?

can I somehow list named pipes on remote server from a client application?

On local computer I use

hFindFile = FindFirstFile("\\\\.\\pipe\\*",&fdFileData);

where hFindFile is a handle and fdFileData is WIN32_FIND_DATA struct. I call FindNextFile() repeatedly and when it returns 0 I close with FindClose(). It works perfect on local machine, but when I try call

hFindFile开发者_JS百科 = FindFirstFile("\\\\servername\\pipe\\*",&fdFileData);

it resulted to ERROR_INVALID_FUNCTION. Someone advise me that I need to connect to remote server by WNetUseConnection(), but for me it's not clear what object I have connect to.


If the other machine is windows, it is often sufficient to map any drive using WNetUseConnection() and gain the credentials you require to connect to other resources (i.e. named pipes).

http://support.microsoft.com/kb/256847

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜