Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 85

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Help C++ Alin Baseadress
Results 1 to 10 of 10

Thread: Help C++ Alin Baseadress

  1. #1

    Help C++ Alin Baseadress

    Hi, could somebody tell me, how to make an universal function to alingning adressess both windows xp, and windows vista/7? My method:
    adress + 0x400000 - base adress doesn't work ;(

    Regards, Light Squared





  2. #2
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: Help C++ Alin Baseadress

    Address + base address should be enough, if the address has no base address.
    If you're grabbing addresses from this forum, chances are they have 0x400000 as base address already applied to them, so you'll need to subtract 0x400000 and add the current base address.

  3. #3

    RE: Help C++ Alin Baseadress

    For example hp adreses (0x945000) should look: 0x945000 - 0x4000000 + baseAddress ??

  4. #4
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: Help C++ Alin Baseadress

    Quote Originally Posted by Light Squared
    For example hp adreses (0x945000) should look: 0x945000 - 0x4000000 + baseAddress ??
    Yes, but be wary of the amount of zeroes, it should be 0x400000.

  5. #5

    RE: Help C++ Alin Baseadress

    I'm trying with:
    static int base = (int)getModuleBase();
    static int XPBase = 0x400000;
    lpBaseAddress += (base - XPBase);
    but it doesn't work on xp

  6. #6
    Senior Member
    Join Date
    Apr 2008
    Posts
    689

    RE: Help C++ Alin Baseadress

    Hi, you should make sure lpBaseAddress is the unaltered address found in XP with its base(0x400000) and that getModuleBase is working.

  7. #7

    RE: Help C++ Alin Baseadress

    Adress is readed with xp and getModuleBase is 100% working

  8. #8

    RE: Help C++ Alin Baseadress

    Use search. Many people have posted how to do this, including me and BlackD.

  9. #9

    RE: Help C++ Alin Baseadress

    I can't find, please post threads here for me....
    Sory for the problem

  10. #10
    Senior Member
    Join Date
    Oct 2009
    Location
    Poland, Świebodzin
    Posts
    233

    RE: Help C++ Alin Baseadress


Posting Permissions

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