Skip to content

DeRefDw

See Also: Memory Management Functions

Purpose

Retrieves the contents of one double word (four bytes) using a Pointer to its memory address.

Syntax

DeRefDW({pMemory}, {iOffset})

Parameters

  • {pMemory}: A Pointer variable that is set equal to the block of memory.

  • {iOffset}: An integer variable that contains the offset within the block of memory where the reading will take place.

Return Type

Integer

What It Does

Retrieves the contents of one dword of a memory block using a pointer to its memory address and a given offset.

Example

Function GetMemoryDWord Pointer aPointer Integer iOffset Returns Integer
    Integer iDWordValue
    Move (DeRefDW(aPointer, iOffset)) to iDWordValue
    Function_Return iDWordValue
End_Function

Notes

  • Using the DeRefDW function with invalid parameters will likely cause your program to crash.