Pipes won't work with limited accounts
I am using Named Pipes to commmunicate between a Windows Service and one or more client applications (depending on the number of users logged in).
Everything works fine if the client app runs under a user with administrator rights.
When it runs under a limited user account I get the ERROR_ACCESS_DENIED message when the client is trying to connect to the Pipe Server (created by the service).
This is the code section generating the error message:
hPipe =
pipeName,// pipe name
GENERIC_READ |
// read and write accessGENERIC_WRITE,
0,
// no sharingIntPtr.Zero,// default security attributesOPEN_EXISTING,
// opens existing pipe0,
// default attributesIntPtr.Zero);I suspect that I have to supply a structure to thelpSecurityAttributesargument specifying a security descriptor, but I don't know how that would look like in code.
Can someone shed some light on this issue? Preferably with a short example in code.
Thanks

