Hi, I have developed an installer application in Visual C++ 6.0. It runs in admin login. While it creates program folder, I want to assign specific rights. The rights I want to assign are as under. Everybody should be allowed for Modify + Read & Execute + List folder content + Read + Write. On advance security tab, "Apply to" field for Everybody should be set to "This folder, subfolders and files". In addition "Apply these permissions to objects and/or containers within this container only" tick box shoud be checked. Right now, the code I have used for this is, -------------------------------------------------------------- SECURITY_ATTRIBUTES sa; SECURITY_DESCRIPTOR sd; InitializeSecurityDescriptor(&sd,SECURITY_DESCRIPTOR_REVISION); SetSecurityDescriptorDacl(&sd,TRUE,NULL,FALSE); SetSecurityDescriptorGroup(&sd,NULL, FALSE ); SetSecurityDescriptorSacl(&sd, FALSE, NULL, FALSE ); sa.nLength = sizeof(SECURITY_ATTRIBUTES); sa.lpSecurityDescriptor = &sd; sa.bInheritHandle = TRUE; CreateDirectory( m_strDestinationDir, &sa ); -------------------------------------------------------------- This gives full control to Everybody but does not have setting on Advance tab as I mentioned above. Due to that files created by one user in this folder becomes unaccessible for another user. I will be very much thankful if someone can help me out to resolve this problem. Thanks & Regards, Chintan.
C.R.Naik