c++ - How to obtain a list of accesible named pipes on remote server? -
can somehow list named pipes on remote server client application?
on local computer use
hfindfile = findfirstfile("\\\\.\\pipe\\*",&fdfiledata);
where hfindfile handle , fdfiledata win32_find_data struct. call findnextfile() repeatedly , when returns 0 close findclose(). works perfect on local machine, when try call
hfindfile = findfirstfile("\\\\servername\\pipe\\*",&fdfiledata);
it resulted error_invalid_function. advise me need connect remote server wnetuseconnection(), me it's not clear object have connect to.
if other machine windows, sufficient map drive using wnetuseconnection() , gain credentials require connect other resources (i.e. named pipes).
Comments
Post a Comment