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).

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


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -