c++ question

Posts 1–4 of 4 · Page 1 of 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.
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.
used in dll injections. you dont have to use dword you can use *(int*) or *(float*) etc...
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...
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us