Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpAddress As Long, ByVal lpBuff As Long, ByVal nSize As Long, ByVal lpNumberOfBytesRead As Long) As Boolean
Private Sub Command1_Click()
Dim by(2) As Byte
Dim i, hProcessAs As Long
Dim b As Boolean
hProcess = GetCurrentProcess()
b = ReadProcessMemory(hProcess, App.hInstance, VarPtr(by(0)), UBound(by), i)
Text1.Text = Chr(by(0)) + Chr(by(1))
End Sub