Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 01:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C++]WriteProcessMemory: Problems opening the process - WTF -

Discussion on [C++]WriteProcessMemory: Problems opening the process - WTF - within the C/C++ forum part of the Coders Den category.

Reply
 
Old 01/06/2014, 20:51   #16
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,458
Received Thanks: 1,407
Thanks for bothering in lookin' at this. I'll try it later.
Hybrid~ is offline  
Old 01/06/2014, 23:25   #17


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,904
Received Thanks: 25,394
Quote:
Originally Posted by Omdihar View Post
You don't need to request PROCESS_ALL_ACCESS access.
Requesting PROCESS_VM_WRITE should work.
That wouldn't make a difference for WriteProcessMemory.
MrSm!th is offline  
Thanks
1 User
Old 01/07/2014, 01:05   #18




 
Omdi's Avatar
 
elite*gold: 93616
Join Date: Apr 2010
Posts: 13,737
Received Thanks: 14,990
Quote:
Originally Posted by MrSm!th View Post
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.
Omdi is offline  
Thanks
3 Users
Old 01/07/2014, 15:19   #19


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,904
Received Thanks: 25,394
Quote:
Originally Posted by Omdihar View Post
That's the point
The problem is in OpenProcess and not in WriteProcessMemory.

You can find a solution in the msdn specification:


You just try to avoid using PROCESS_ALL_ACCESS.
Use the flag you currently need, in your case write access should be enough.
Then OpenProcess should fail and not WriteProcessMemory.
MrSm!th is offline  
Reply


Similar Threads Similar Threads
Cheat Engine "Error while opening this process"
11/11/2012 - Dekaron - 3 Replies
Why cant i attach CE to dekaron.exe?? I have tried different bypasses and different versions of CE but they all give the same error
Error while opening Process
07/28/2010 - Kal Online - 4 Replies
Hey ppl i star my UCE and then there come an error "Error while opening Process" any one can help me pls?
New problem (Error while opening this process)
05/13/2010 - Kal Online - 2 Replies
Hi all Every time i try to open engine.exe with cheat engine its told me (Error while opening this process):mad: can any one tell me how to fix this problem but plz don't say change ur CE coz its the only one i can open it with out the hack shield detect me Thnx alot
Error while opening process!
12/19/2009 - S4 League - 3 Replies
Ich hab ein Problem hab S4 mit der gecrackten Exe mit Injector alles gestartet dann Cheat Engine geöffnet wollt den Process suchen fand ihn auch S4Client exe... dann drauf gedrück kommt aber immer "Error while opening process" wie kann ich das umgehen oder woher passiert der fehler :x
Opening Kal Process, with debug privileges
08/06/2009 - Kal Online - 8 Replies
Hi, This is my simple program that reads the value from KalOnline speed pointer. #include <windows.h> #include <iostream> #include <conio.h> LPCWSTR lpstrWindowName = L"KalOnline"; HWND hWindow; DWORD dwProcess;



All times are GMT +2. The time now is 01:35.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.