Retrieve the value of one or more WORDs from the memory buffer pointed by <pMem> starting at the position <nShift>.
Syntax:
PeekWord(<pMem>,[[@]<nShift>]) -> <nWord>
PeekWord(<pMem>,[[@]<nShift>], <nItems>) -> <aWords>
Parameters:
<pMem>
Base pointer to the memory buffer.
<nShift>
Zero based starting position within <pMem>. Is this parameter is passed by reference will be increased with the number of bytes retrieved, to reuse it in subsequent calls to Peek...() functions.
<nItems>
Number of WORD values to read and store as numeric elements of the returned array.
Return Value:
Depending on the syntax used PeekDWord() can return the following values:
| • | <nWordValue> Numeric value of the WORD pointed by <pMem> + <nShift> |
| • | <aWords> Array of <nItems> elements containing the retrieved WORDs. |