O'Reilly logo

Windows Debugging: Practical Foundations by Dmitry Vostokov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Pointers to Memory

Pointers Revisited

Pointer is a memory cell or a register that contains the address of another memory cell. Memory pointers have their own addresses because they are memory cells too. On 32-bit Windows pointers are always 32-bit. On 64-bit Windows pointers are 64-bit except in emulation mode when executing 32-bit applications and services.

Addressing Types

As we have seen in Chapter 5, memory cells can be of one byte, word or double word sizes. Therefore, we can have a pointer to a byte (byte ptr), a pointer to a word (word ptr), and a pointer to a double word (dword ptr). WinDbg disassembly output in Chapter 4 has byte ptr and dword ptr prefixes in instructions involving pointers to memory.

Here are some illustrated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required