It seems that there is no way to modify the permissions of a named pipe after it has been created.
I tried and it always either simply doesn't work or returns ACCESS_DENIED.
So, I had to specify both the DACL and SACL up front when creating the pipe.
The DACL code was pasted above in an earlier thread and the SACL can be created as follows:
1. Create a new using InitializeAcl()
2. Initialize a new SID specifying 'SECURITY_MANDATORY_LOW_RID'
3. Call AddMandatoryAce() to add the SID to the ACL
4. Call SetSecurityDescriptorSacl() to add the ACL to the security descriptor
'Scrap' 카테고리의 다른 글
Windows의 "연결 프로그램" 실행 매커니즘에 대한 설명 (0) | 2012.10.10 |
---|---|
Guidance on using the App Specific Hardware ID (ASHWID) to implement per-device app logic (0) | 2012.09.17 |
Some handy dialog box tricks, tips and workarounds (MFC) (0) | 2012.09.05 |
Add GIF-Animation to your MFC and ATL Projects (0) | 2012.09.04 |
Set permissions on a specific service (Windows) (0) | 2012.08.30 |