Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 11:34

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



vb.net readprocessmemory...windows7 64bit

Discussion on vb.net readprocessmemory...windows7 64bit within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2009
Posts: 11
Received Thanks: 0
vb.net readprocessmemory...windows7 64bit

Hi ich habe ein Problem mit der api funktion readprocessmemory...seitdem ich windows7 64bit drauf habe scheint die funktion nichtmehr zu funktionieren unter google habe ich gefunden, das man eine alte Kernel32.dll benutzen kann, was bei mir aber nicht funktioniert hat. Da ich aber gerade die api brauche müsste ich eine alternative/lösung finden...

How can i use the ReadProcessMemory-API in Windows7 64bit?


Quote:
Public Class Form1
Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
Public Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer

Public myProcesses As Process() = Process.GetProcessesByName("...")
Public processid As Integer = myProcesses(0).Id
Public processHandle = OpenProcess(16, True, processid)

Dim RestlicheHp As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ReadProcessMemory(processHandle, &H..., RestlicheHp, 4, 0)
MsgBox(RestlicheHp)
End Sub




End Class
Unbenannt is offline  
Old 01/07/2010, 18:01   #2
 
elite*gold: 0
Join Date: Oct 2006
Posts: 198
Received Thanks: 184
..

bumb... i have the same problem
Chefes is offline  
Old 01/07/2010, 21:08   #3
 
^darkwing's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 148
Received Thanks: 31
tried GetLastError() ? Maybe OpenProcess or RPM fails and you could see which error code & fix it.
^darkwing is offline  
Reply


Similar Threads Similar Threads
ReadProcessMemory, C++ Problem
08/09/2010 - C/C++ - 12 Replies
Hi, ich mach mich gerade ans Memory editing in C++ aber habe nen Problem mit ReadProcessMemory. Hier mal mein Code: #include <iostream> #include <limits> #include <windows.h> using namespace std; int main()
Injektor Windows7 64Bit!
01/04/2010 - WarRock Hacks, Bots, Cheats & Exploits - 7 Replies
Hey Kann mal jemand diesen Injektor Testen.. Ob der auf Windows7 64Bit geht? Download: http://www.elitepvpers.com/forum/warrock-hacks-bots -cheats-exploits/406125-viele-warrock-injectoren-f -r-verschiedene-systeme.html Thx im Vorraus
Metin2 auf Windows7 64bit
12/12/2009 - Metin2 - 2 Replies
123
ReadProcessMemory Problem
07/26/2009 - General Coding - 3 Replies
I can't listing Proc. Only one uses TlHelp32 var hProcess,HandleWindow: THandle; Struct: TProcessEntry32; ProcessID,temp:cardinal; buf:pchar; begin
ReadProcessMemory problem
06/10/2009 - General Coding - 4 Replies
hi, jedes mal wenn ich ReadProcessMemory verwende kommt die zahl 1 raus. Was mache ich denn falsch. int ReadMemory(int address) { int r; FindWindow(); r = ReadProcessMemory(Process, (int*)address, &value, sizeof(value), NULL); CloseHandle( Process );



All times are GMT +1. The time now is 11:35.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.