Checking for a module

Jul 9, 2012 at 12:00am
I'm trying to check for a module handle on form load, but regardless it always checks positive. Heres what I have

1
2
3
4
5
6
7
8
9
DWORD dwTest;
do{
dwTest = (DWORD)GetModuleHandleA("Test.dll");
//Sleep(100);
}
while(dwTest);
this->label1->ForeColor = System::Drawing::Color::Lime;
this->label1->Text = "Test : Found!";
}
Last edited on Jul 9, 2012 at 12:38am
Jul 9, 2012 at 12:02am
closed account (zb0S216C)
You'll get better answers if you move this thread to the Windows section.

Wazzak
Topic archived. No new replies allowed.