Results 1 to 3 of 3
  1. #1
    loller007's Avatar
    Join Date
    Jul 2008
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Greetings fellow Programmers,
    I have a question regarding this c code.

    Quote Originally Posted by loller007 View Post
    //Microsoft Minesweeper Time Hack
    //By Samuel-Sama

    //Preprocessor files
    #include <windows.h>

    //Define variables
    DWORD ThreadID;
    int *time = (int*)0x0100579C; //Offset for time.

    DWORD WINAPI changeTime(LPVOID lParam) {
    while(1)
    *time = 0;

    ExitThread(0);
    }

    BOOL APIENTRY DllMain(HINSTANCE hDll, DWORD callReason, LPVOID lpReserved) {
    if(callReason == DLL_PROCESS_ATTACH) {
    MessageBox(0, "Dll Injection Successful! ", "Dll Injector", MB_ICONEXCLAMATION | MB_OK);
    CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&changeTime, 0, 0, &ThreadID);
    }

    return 1;
    }
    I am running windows 7 Home premium.
    I compiled it with devcpp,
    run winject 1.7. with admin rights
    pick minesweeper from the process list,
    pick my dll to load into the process.
    then winject says Unable to inject into: Minesweeper.exe Reason: 0
    (Finject aka Faith Injector does inject my dll, tho i do not see a messagebox).
    ( i am not expecting the minesweeper timer to freeze on 0, I just expect it to load that messagebox() )
    If you can help me, i would greatly appreciate it!
    greetings,
    loller007

  2. #2
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    127
    you can't inject dll's into default game's that come with Windows 7.

  3. #3
    loller007's Avatar
    Join Date
    Jul 2008
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Thanks, i needed that.
    It does work on other games.
    greets,
    loller007

Similar Threads

  1. [Help Request] someoen help with this pub aCCOUNT
    By steelrat55rat in forum CrossFire Help
    Replies: 5
    Last Post: 07-06-2011, 08:45 AM
  2. [Help Request] Anyone can help with this ?
    By devileyebg in forum Vindictus Help
    Replies: 1
    Last Post: 05-01-2011, 03:57 PM
  3. Help with D3d9_32.dll
    By GoBxHiTz in forum Combat Arms Hacks & Cheats
    Replies: 6
    Last Post: 08-18-2008, 08:43 PM
  4. can som1 help with this plz?
    By Obey in forum WarRock - International Hacks
    Replies: 2
    Last Post: 01-10-2008, 04:59 PM
  5. help with this one hack
    By najo22 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 08-25-2007, 02:02 AM