Required permissions of process handle for InjectLibrary
Posted: Thu Jan 13, 2005 8:15 pm
What are the required permissions of the process handle passed to InjectLibrary() and UninjectLibrary()?
So far I've been getting the process handle by calling OpenProcess(PROCESS_ALL_ACCESS) but wish to use only the permissions that are absolutely required, to improve the chances that OpenProcess() will succeed. Is SYNCRONIZE or PROCESS_QUERY_INFORMATION, for example, enough?
Thanks,
David
So far I've been getting the process handle by calling OpenProcess(PROCESS_ALL_ACCESS) but wish to use only the permissions that are absolutely required, to improve the chances that OpenProcess() will succeed. Is SYNCRONIZE or PROCESS_QUERY_INFORMATION, for example, enough?
Thanks,
David