Code:
Private Declare Function VirtualAllocEx Lib "KERNEL32" (ByVal hProcess As Long, ByVal lpAddr As Long, ByVal dwSize As Long, ByVal flAllocationType As Long, ByVal flProtect As Long) As Int32
(...)
Process.EnterDebugMode() 'EDIT
Dim n As Int32
Dim myProcesses As Process() = Process.GetProcessesByName("calc")
Const PROCESS_ALL_ACCESS = &H1F0FFF
prHandle = OpenProcess(PROCESS_ALL_ACCESS, 0, myProcesses(0).Id)
n = VirtualAllocEx(prhandle, 0, 8074, &H1000, &H4)
MsgBox(n)
Was mach ich falsch?
Erledigt- > siehe letzter Post / EDIT4






