i can't GetmoduleHandleA("CShell.dll")?

Posts 1–4 of 4 · Page 1 of 1
i can't GetmoduleHandleA("CShell.dll")?
here's my code:
#include<iostream>
#include<windows.h>
using namespace std;
int main(){

while (1){
if(GetModuleHandleA("CShell.dll")!=NULL){
cout<<"OK";
exit(-1);
}
}
}


when i run and ingame crossfire, it always NULL, i don't know why
Quote Originally Posted by provandam0147 View Post
here's my code:
#include<iostream>
#include<windows.h>
using namespace std;
int main(){

while (1){
if(GetModuleHandleA("CShell.dll")!=NULL){
cout<<"OK";
exit(-1);
}
}
}


when i run and ingame crossfire, it always NULL, i don't know why
By the looks of it, you're using console. I don't know with this. Try to change it to a dll.
Future info: you cannot get the base address of a program via
Code:
(unsigned long)GetModuleHandle("xxx.yyy");
externally. You'd have to enumerate all processes I believe. That code snippet is fine if used internally though.
just use
Code:
DWORD CShell = GetModuleHandleA("CShell.dll");
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us