Quote:
Originally Posted by MrSm!th
That wouldn't make a difference for WriteProcessMemory.
|
That's the point
The problem is in OpenProcess and not in WriteProcessMemory.
You can find a solution in the msdn specification:
Quote:
The size of thePROCESS_ALL_ACCESS*flag increased on Windows Server*2008 and Windows*Vista. If an application compiled for Windows Server*2008 and Windows*Vista is run on Windows Server*2003 or Windows*XP, the*PROCESS_ALL_ACCESS*flag is too large and the function specifying this flag fails with*ERROR_ACCESS_DENIED. To avoid this problem, specify the minimum set of access rights required for the operation. If*PROCESS_ALL_ACCESS*must be used, set _WIN32_WINNT to the minimum operating system targeted by your application*
|
You just try to avoid using PROCESS_ALL_ACCESS.
Use the flag you currently need, in your case write access should be enough.