22 Jan
2007
22 Jan
'07
10:41 a.m.
Vitaliy Margolen wrote:
- req->process_access = PROCESS_ALL_ACCESS; + req->process_access = MAXIMUM_ALLOWED | PROCESS_ALL_ACCESS; req->process_attr = (psa && (psa->nLength >= sizeof(*psa)) && psa->bInheritHandle) ? OBJ_INHERIT : 0; - req->thread_access = THREAD_ALL_ACCESS; + req->thread_access = MAXIMUM_ALLOWED | THREAD_ALL_ACCESS;
This looks wrong/confusing. I don't think MAXIMUM_ALLOWED does anything more when or'd with specific access rights. -- Rob Shearman