Read a byte, integer or long from memory

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 shuwork 的 blog

date: 6/17/2000
versions: vb4/32 vb5 vb6 level: intermediate
author:
the vb2themax team

private declare sub copymemory lib "kernel32" alias "rtlmovememory" (dest as _
    any, source as any, byval bytes as long)

' read a byte from memory

function peekb(byval address as long) as byte
    copymemory peekb, byval address, 1
end function

' read an integer from memory

function peeki(byval address as long) as integer
    copymemory peeki, byval address, 2
end function

' read a long value from memory

function peekl(byval address as long) as long
    copymemory peekl, byval address, 4
end function

本文关键:Read memory
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top