Thread: Detours

Results 1 to 7 of 7
  1. #1
    Fakesk's Avatar
    Join Date
    Sep 2011
    Gender
    female
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Bored

    Detours

    Estou tentando usar a Detours que o @Black Diamond postou mais esta dando erro no HooK.
    Essa: https://www.mpgh.net/forum/397-combat...mbined-v*****ml

    Code:
    1>------ Build started: Project: CaBase, Configuration: Release Win32 ------
    1>  DirectX.cpp
    1>DirectX.cpp(109): error C3861: 'DetourCreate': identifier not found
    1>DirectX.cpp(110): error C3861: 'DetourCreate': identifier not found
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Oque devo fazer pra arrumar isso?

    Minha Hook esta Assim:

    Code:
     void cDirectx::Hook(void)
    {
    	DWORD Reset	   = Base.GetPointer(16);
    	DWORD Present  = Base.GetPointer(17);
    
        pReset   = (oReset)   DetourCreate(( BYTE* )Reset,   ( BYTE* )gellReset );
        pPresent = (oPresent) DetourCreate(( BYTE* )Present, ( BYTE* )gellPresent );
    }
    Last edited by Alessandro10; 10-08-2011 at 05:09 PM.

  2. #2
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy

    Code:
    void cDirectx::Hook(void)
    {
       DWORD Reset	   = Base.GetPointer(16);
       DWORD Present  = Base.GetPointer(17);
    
        pReset   = (oReset)   DetourFunc(( BYTE* )Reset,   ( BYTE* )gellReset );
        pPresent = (oPresent) DetourFunc(( BYTE* )Present, ( BYTE* )gellPresent );
    }

  3. #3
    Templar's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Brazil
    Posts
    3,217
    Reputation
    87
    Thanks
    989
    My Mood
    Angelic
    Não funcionou porque você não está usando a Combined Base V2 postada pelo whit.
    E sim alguma que foi postada aqui na seção BR.
    Just a wanderer from the beginnings of this site.
    An old Combat Arms' sections active member and hacker (just what I thought when I was a child).

    My IM doesn't work. Send me a private message instead.

    Name changes:
    bruno2204
    The Rev.
    BioHuman
    Element™

  4. #4
    Fakesk's Avatar
    Join Date
    Sep 2011
    Gender
    female
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    @Alessandro10 ja tinha feito isso antes mais deu erro ainda.
    Code:
    1>------ Build started: Project: CaBase, Configuration: Release Win32 ------
    1>  DirectX.cpp
    1>DirectX.cpp(109): error C2660: 'DetourFunc' : function does not take 2 arguments
    1>DirectX.cpp(110): error C2660: 'DetourFunc' : function does not take 2 arguments
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    @The Rev. estou usando a postada na seção gringa a Combined Basee v2.

  5. #5
    Templar's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Brazil
    Posts
    3,217
    Reputation
    87
    Thanks
    989
    My Mood
    Angelic
    Quote Originally Posted by Fakesk View Post
    @Alessandro10 ja tinha feito isso antes mais deu erro ainda.
    Code:
    1>------ Build started: Project: CaBase, Configuration: Release Win32 ------
    1>  DirectX.cpp
    1>DirectX.cpp(109): error C2660: 'DetourFunc' : function does not take 2 arguments
    1>DirectX.cpp(110): error C2660: 'DetourFunc' : function does not take 2 arguments
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    @The Rev. estou usando a postada na seção gringa a Combined Basee v2.
    u.u
    Então analisa os argumentos da função e veja o que está errado '-'
    Just a wanderer from the beginnings of this site.
    An old Combat Arms' sections active member and hacker (just what I thought when I was a child).

    My IM doesn't work. Send me a private message instead.

    Name changes:
    bruno2204
    The Rev.
    BioHuman
    Element™

  6. #6
    ChaosMagician's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,669
    Reputation
    20
    Thanks
    1,326
    My Mood
    Dead
    Code:
    void cDirectx::Hook(void)
    {
       DWORD Reset	   = Base.GetPointer(16);
       DWORD Present  = Base.GetPointer(17);
    
        pReset   = (oReset)   DetourFunc(( BYTE* )Reset,   ( BYTE* )gellReset, 5 );
        pPresent = (oPresent) DetourFunc(( BYTE* )Present, ( BYTE* )gellPresent, 5 );
    }

  7. The Following User Says Thank You to ChaosMagician For This Useful Post:

    Fakesk (10-08-2011)

  8. #7
    Fakesk's Avatar
    Join Date
    Sep 2011
    Gender
    female
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    Quote Originally Posted by ChaosMagician View Post
    Code:
    void cDirectx::Hook(void)
    {
       DWORD Reset	   = Base.GetPointer(16);
       DWORD Present  = Base.GetPointer(17);
    
        pReset   = (oReset)   DetourFunc(( BYTE* )Reset,   ( BYTE* )gellReset, 5 );
        pPresent = (oPresent) DetourFunc(( BYTE* )Present, ( BYTE* )gellPresent, 5 );
    }

    VLW Manu funcionou *_*.

    Mesmo com outra detours ainda esta dando dc,que merda.
    Last edited by Fakesk; 10-08-2011 at 01:43 PM.

Similar Threads

  1. Detouring MPGH Filters Will Result In A Ban.
    By radnomguywfq3 in forum Combat Arms Hacks & Cheats
    Replies: 0
    Last Post: 11-09-2008, 06:02 PM
  2. Detour problem
    By juppeli in forum WarRock - International Hacks
    Replies: 4
    Last Post: 07-16-2008, 03:56 AM
  3. [Realease-Test]Detours Test
    By Kung Fu Penguin31 in forum WarRock - International Hacks
    Replies: 16
    Last Post: 06-29-2008, 05:35 AM
  4. Detour
    By HackingIsMyLife in forum Programming Tutorial Requests
    Replies: 0
    Last Post: 05-20-2008, 07:17 AM
  5. coding detour?
    By laserdude45 in forum C++/C Programming
    Replies: 3
    Last Post: 01-20-2008, 03:11 PM