|
-
May 2nd, 2009, 03:04 PM
#1
GetModuleHandle? ... or somehing?
I have some pointer addresses given to me by CheatEngine, but they look like this:
Game.dll+Offset
I tried using a code like this to get the handle of the dll, and apply the offset...
Code:
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
int main()
{
HMODULE module_handle;
module_handle = GetModuleHandle(_T("Game.dll"));
printf("handle = %d", module_handle);
return 0;
}
But it just returns 0... I know i am doing something stupid wrong, but could someone please help me out? Thanks.
-
May 3rd, 2009, 11:39 PM
#2
Re: GetModuleHandle? ... or somehing?
Thats becasue you are using different process, read the msdn:
 Originally Posted by MSDN
This function returns a module handle for the specified module if the file is mapped into the address space of the calling process
Cheers
-
May 5th, 2009, 04:09 AM
#3
Re: GetModuleHandle? ... or somehing?
Don't use GetModuleHandle(), but the other one...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|