Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 337

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 339

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 341

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 343
GetForeGroundWindow

Results 1 to 9 of 9
  1. #1
    Semi-Coder t00ny's Avatar
    Join Date
    Jan 2008
    Posts
    361

    GetForeGroundWindow

    Hey all !
    As you can see in the title, i'm talking about GetForeGroundWindow in PB usage.
    I've made a try with NOP'ping the call in pbcl.
    But i think it's detected.
    This is why i would like to know how to hook this function and detect when PBSS is taken.
    Thanks a lot.
    “Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.” - I.A

  2. #2
    Coders NightGhost's Avatar
    Join Date
    Apr 2006
    Posts
    658

    Re: GetForeGroundWindow

    Place a detour on GetForegroundWindow

  3. #3
    Semi-Coder t00ny's Avatar
    Join Date
    Jan 2008
    Posts
    361

    Re: GetForeGroundWindow

    Ok, but after ? I've already done that. Thanks
    “Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.” - I.A

  4. #4
    Coders NightGhost's Avatar
    Join Date
    Apr 2006
    Posts
    658

    Re: GetForeGroundWindow

    getforegroundwindowhook:
    {
    call orig(0,0,0);
    }

  5. #5
    Semi-Coder t00ny's Avatar
    Join Date
    Jan 2008
    Posts
    361

    Re: GetForeGroundWindow

    Hmmmm ok thank you.

    Edit : I have a question, call orig is asm ?
    “Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.” - I.A

  6. #6
    Veteran Member
    Join Date
    Apr 2006
    Location
    Canada
    Posts
    748

    Re: GetForeGroundWindow

    Quote Originally Posted by tony31400 View Post
    Hmmmm ok thank you.

    Edit : I have a question, call orig is asm ?
    by call orig he means call the original function

    void ofunc(int lolparam) {
    original_func(lolparam);
    }
    Code:
    <chaplja|> i'm taking over nixcoders
    <Smileman`> cool

  7. #7
    Semi-Coder t00ny's Avatar
    Join Date
    Jan 2008
    Posts
    361

    Re: GetForeGroundWindow

    Thank you very much
    “Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.” - I.A

  8. #8
    Senior Member
    Join Date
    Feb 2007
    Posts
    214

    Re: GetForeGroundWindow

    If it's for enemy territory this method work but it return no sound because the game use this function to know if your game is minimize.

  9. #9
    x22
    x22 is offline
    VIP
    Join Date
    Jul 2007
    Posts
    92

    Re: GetForeGroundWindow

    I'm not sure but GetForeGroundWindows isn't used anymore no o_O?
    The best is hooking Lock and UnLock in d3d.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •