Hey, I'm trying to find some good information (articles, samples, whatever) on changing the access rights of a process. I believe the API methods include, OpenProcess, GetKernelObjectSecurity, GetSecurityDescriptorDacl, GetAclInformation, SetKernelObjectSecurity, etc.
I am trying to disable some rights in a process like PROCESS_TERMINATE though I am having trouble finding some good information.
Thanks all
Luke

changing process access levels/rights
UseCode
Hey,
I know you can use SubInAcl to see the rights of the process, but are you sure you can deny PROCESS_TERMINATE using it
If so, can you show an example please
Thanks ahead
sternr@gmail.com
Anthony Duarte
Note that version 4.0.1.1604 is not working, so download version 5.2.3790.1180 from microsoft site.
ferrad
Get a handle to the process you want to protect (GetCurrentProcess for the
current process).
Pass the handle to GetKernelObjectSecurity to get its DACL. Add a Denied
ACE to it specifying the current user's SID (or better yet, the well-known
SID for "Everyone"), and the PROCESS_TERMINATE right. Call
SetKernelObjectSecurity to update the process' DACL.