Results 1 to 5 of 5
  1. #1
    boboben1's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    29
    My Mood
    Paranoid

    I made this code and the game is crashing on injection

    I made this code and the game is crashing on injection even without doing anything:
    Code:
    DWORD WINAPI Hotkeys(LPVOID args)
    {
    	//MessageBox(0,L"Hello",0,0);
    	while (true)
    	{
    	}
    }
    
    BOOL WINAPI DllMain(HMODULE hMod, DWORD dwReason, LPVOID lpReserved)
    {
    	DisableThreadLibraryCalls(hMod);
    	if (dwReason == DLL_PROCESS_ATTACH)
    	{
    		CreateThread(0,0,Hotkeys,0,0,0);
    	}
    }
    EDIT: I HAVE USED PERX, BLACK DRAGON, and WINJECT to test with.
    Last edited by boboben1; 03-12-2011 at 11:52 AM.

  2. #2
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    416
    Thanks
    1,614
    is this in the right section of cod?..
    im confused...


  3. #3
    lolbie's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Netherlands
    Posts
    5,207
    Reputation
    288
    Thanks
    2,136
    My Mood
    Angelic
    maybe you need osme more than only that?
    I love it when people keep their agreements /sarcasm ftw

  4. #4
    boboben1's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    29
    My Mood
    Paranoid
    I had more then i tried to narrow it down to the problem... It is something with my DllMain because the second i inject it crashes.

  5. #5
    willrulz188's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Ohio?
    Posts
    1,786
    Reputation
    35
    Thanks
    231
    My Mood
    Amazed
    Did you declare it right?
    Question ALL statements! ?
    You're in denial that you're in denial. ?
    [img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]