Thread: c++ question

Results 1 to 4 of 4
  1. #1
    xtfresh's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    asdf
    Posts
    20
    Reputation
    10
    Thanks
    1

    c++ question

    hello all,
    i am learning c++ and taking lessons in school
    i was lookin at source code for some hacks and i saw: *(DWORD*).
    please explain what that does. i searched google and found nothing at all about that.

  2. #2
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool
    Typically it represents a double word. On a 16-bit machine a WORD would be 16 bits, on a 32-bit machine, it would be 32 bits.

  3. The Following User Says Thank You to Obama For This Useful Post:

    Melodia (05-22-2010)

  4. #3
    nucl34r's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    My Mood
    Psychedelic
    used in dll injections. you dont have to use dword you can use *(int*) or *(float*) etc...

  5. #4
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Obama is right on the DWORD part. It's basically casting an address to a pointer then pointing to it's contents.

    Example:

    Address 0x12345678 stores the value of ammunition in a gun.

    [php]
    *(DWORD*)0x12345678 = 99999; // Now you have a crap load of ammo
    [/php]

    Yea...

  6. The Following User Says Thank You to Void For This Useful Post:

    Hell_Demon (05-22-2010)

Similar Threads

  1. WPE Pro Question...
    By OutZida in forum General Game Hacking
    Replies: 4
    Last Post: 08-08-2011, 01:02 AM
  2. Hacking world of warcraft? & a noob question
    By arsholio in forum General Game Hacking
    Replies: 9
    Last Post: 04-08-2006, 01:55 PM
  3. Photoshop Question
    By arunforce in forum Art & Graphic Design
    Replies: 6
    Last Post: 01-15-2006, 11:38 AM
  4. Quick Question..Please Answer
    By ypg_gamer in forum WarRock - International Hacks
    Replies: 4
    Last Post: 01-04-2006, 10:32 AM
  5. question
    By wardo1926 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 12-30-2005, 07:36 PM