It says it was error code 299 : Only a partial request of ReadProcessMemory() or WriteProcessMemory() was completed. I tried executing it with a simpler game, such as minesweeper with admin access,...
Type: Posts; User: BatchProgrammer
It says it was error code 299 : Only a partial request of ReadProcessMemory() or WriteProcessMemory() was completed. I tried executing it with a simpler game, such as minesweeper with admin access,...
Now that I got my code fixed, I have a new problem. For some reason, my program fails at ReadProcessMemory with "No error" as the message. I suspect I may have a made a logic error or done something...
My function only returns 0 at the moment because I didn't want to add more code before fixing the bugs already there. I just wanted to add enough so my compilier wouldn't yell at me for no return...
No, I'm not compiling as C99.
I have looked at several samples and I am still extremely frustrated because, it seems no matter which way I try it, it gives me the same errors and warnings each time.
/* Preprocessor directives...
^ What? I stored the address in the Newmem pointer though. Not exactly sure what you're trying to tell me.
MinGW
1) AMD Athlon(tm) II X2 250 Processor 3.00 GHz
2) Windows 7 - 64 bit
3) Code::Blocks - Full version
I have never used Asm before, so I've had a little bit of trouble trying to write a Hook in Asm for a process. I've also had trouble with the function FlushInstructionCache. Here is my problematic...
Never mind, I fixed it, I accidentally closed the process handle before changing the memory inside.
BYTE bNewData[]={0x90,0x90,0x90,0x90,0x90,0x90,0x90};
DWORD dwNewDataSize = sizeof(bNewData);
if (WriteProcessMemory(hProcess, 0x0094f720, &bNewData, dwNewDataSize,...
BYTE bNewData[]={0x90,0x90,0x90,0x90,0x90,0x90,0x90};
DWORD dwNewDataSize = sizeof(bNewData);
if (WriteProcessMemory(hProcess, 0x0094f720, &bNewData, dwNewDataSize,...
Thanks alot Mfig1, the code works perfectly now! I may not be able to understand all of it yet because I'm a beginner at the WINAPI, but it will be helpful to me to be able to figure out your code...
Before I paste the code here, I would like to explain some things.
1) I built this code of the directional arrow code mentioned in the FAQ, I deleted some of it and then added a ton more.
2)...
Removed the #ifdef _WIN32 and the other macros, since I kept messsing it up, and I guess I'll just keep it simple for now.
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include...
Oh, and, before I get replies like, " how did you make this the first time then? ", I got this off of the website's FAQ for C programming.
#include <stdio.h>
#include <conio.h>
#include <windows.h>
/* System dependent key codes */
enum
{
I know that in my later replies I fixed it, I'll just post it again I guess ( this time hopefully correctly) :
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
int IsWindows = 1;
Sorry again, please add these headers to that program in the above post at the very top :
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
Made a mistake in the new code that I realized now, here is the new code.
#define SYSTEM WINDOWS
#include <process.h>
#include <windows.h>
I *fixed* the code taking the comments above into consideration, I also decided to make it a windows only program. This would make it easier to focus on one thing and be better for me since I only...
I looked up how to do this on a tutorial that used Code::Blocks, and it indeed works with my compilier without any errors or warnings I normally get with most Win32 API progams, but there are a few...
Hello again, in response to Salem's post I have made several changes...
1) It is now possible to break out of the loop to exit and change which conversion you are using.
2) I removed the...
I wrote this code purely for educational purposes. It also helped
learn more about how exactly things look in memory, so it helped me in that aspect. I'm posting this in order to obtain any...
I've tried to find any factual information I could on google, and
most of the ones they used weren't even close to ANSI C. Even the ones I tried claiming to be for windows failed with my compilier...