I am trying to connect a CGI process to my windows service with a named pipe. My code runs fine using another server on my development machine, but on IIS there are security issues when I call CreateFile() in the CGI process.
The Windows service is the Named Pipe Server and so the CGI process is trying to connect to that named pipe as a client.
I have dug up some code that creates a Global security descriptor with the flag SECURITY_WORLD_SID_AUTHORITY by calling:
InitializeAcl()
AddAccessAllowedAce()
SetSecurityDescriptorDacl()
But I dont really understand the concept. I am assuming that the Pipe Server CreateNamedPipe() must be called with this ACL in the SECURITY_ATTRIBUTES structure but what about the Named Pipe client?
Do I create another Global security descriptor and call CreateFile() with that?
Do I inherit it with
SecurityAttributes.bInheritHandle = TRUE;
Do I just pass Null in the CreateFile() call?