Versions: VB4/32 VB5 VB6 Level: Intermediate
Author: vb2themax.com">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
文章来源于领测软件测试网 https://www.ltesting.net/
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073










