Quote:
Originally Posted by mr.rattlz
You should try and see what GetLastError has to say: 
|
Err.LastDllError.ToString = 87 ' ERROR_INVALID_PARAMETER
Parameter incorrect :/
Quote:
Originally Posted by Itburnz
If you use .net try System.Diagnostics.Process.GetProcessesByName("Cal c");
|
Im already using this : D
Code:
Dim myProcesses As Process() = [B]Process.GetProcessesByName("calc")[/B]
The Handle is alright. I can use ReadProcessMemory with it.
EDIT:Warum schreibt ihr eigentlich Englisch in einem deutschen Topic °-°
EDIT2: Anscheinend hab ich den VirtualAllocEx falsch deklariert.
Hab gerade ein ähnliches Problem bei einem anderen ApiCall gehabt!
EDIT3(-.-): Isses normal dass als Adresse jetzt immer 600000000(Hex) bzw 25769803776(Dez) rauskommt?
EDIT4 = Profit
Code:
<DllImport("kernel32.dll", SetLastError:=True, ExactSpelling:=True)> _
Private Function VirtualAllocEx(ByVal hProcess As IntPtr, ByVal lpAddress As IntPtr, _
ByVal dwSize As UInteger, ByVal flAllocationType As UInteger, _
ByVal flProtect As UInteger) As IntPtr
End Function