Access right?
dwx@necas.nec.co.jp Friday, December 06, 1996 Environment : VC++ 4.0/ NT 4.0/NT3.51 I am using NAMED PIPE to communicate between computers.On server computer,I use CreateNamedPipe to create a NAMED PIPE,on client computer,I use CreateFile to connect to the NAMED pipe.But I cann't succeed.There always is an error"ERROR_ACCESS_DENIED". How can I solve the problem?Anyone can help me? Thanks in advance. Dai Weixing.
James R. Falk -- falk@dpw.com Monday, December 09, 1996 On the server side, I typically call in order: InitializeSecurityDescriptor() SetSecurityDescriptorDacl() // needed to grant access CreateNamedPipe() ConnectNamedPipe() ... On the client side, InitializeSecurityDescriptor() SetSecurityDescriptorDacl() // needed if you want the server to impersonate WaitNamedPipe() CreateFile() ... Sounds like you are not setting the DACL. Refer to Christopher Nefcy's "Windows NT Security" (http://www.microsoft.com/win32dev/netwrk/ntprog.htm) and others at http://www.microsoft.com/win32dev/netwrk/seccpp.htm. Jim ---------------------------------------------------------- James R. Falk 450 Lexington Avenue Senior Systems Analyst New York, NY 10017 Davis Polk & Wardwell 212-450-5654 falk@dpw.com 212-450-5532 fax > > > Environment : VC++ 4.0/ NT 4.0/NT3.51 > > I am using NAMED PIPE to communicate between computers.On server > computer,I use CreateNamedPipe to create a NAMED PIPE,on client > computer,I use CreateFile to connect to the NAMED pipe.But I > cann't succeed.There always is an error"ERROR_ACCESS_DENIED". > How can I solve the problem?Anyone can help me? > Thanks in advance. > > Dai Weixing. > >
| Вернуться в корень Архива |