Posted on 2010-08-17
I use a named pipe server to communicate from a printer port monitor to the user. This works fine when the pipe server and client are on the same PC. When I try to use this across a network the following code
returns Error 5 'Access denied'
The same pipe server is running on all PCs. The only difference is the inclusion of the server name or IP address in the pipe name.
LPSTR lpPipeName="\\\\.\\pipe\\TestPipe" for the local machine is OK
LPSTR lpPipeName="\\\\192.168.1.25\\pipe\\TestPipe" fails (unless ip is ip of the local machine)
OSs are a mixture of Windows 7 and XP
Programming in C++
I guess it is a security problem but I can't find any useful info on this.