Public myHandle As LongFunction InitProcessCheater(pid As Long)pHandle = OpenProcess(&H1F0FFF, False, pid)If (pHandle = 0) Then
InitProcessCheater = False
myHandle = 0
Else
InitProcessCheater = True
myHandle = pHandle
End IfEnd Function
InitProcessCheater = False
myHandle = 0
Else
InitProcessCheater = True
myHandle = pHandle
End IfEnd Function
when calling the Api you have to specifie what should be snaped
(Processes,Thread,Heap) and you will receive a handle to these snapshot!
with these handle you can call "Process32First" and "Process32Next" or
"Thread32First" and "Thread32Next" or "Heap32First" and "Heap32Next" or
"Module32First" and "Module32Next"! every of the listed apis has a pointer
to a struct as parameter! when the call was sucessfull the struct was filled
with all the informations you wanted ! to get the handle to a running
process ( to kill this process ;) ) you call "OpenProcess" with a PID and
you receive the handle connected with this PID !ok, i hope this will help you a bit !
if you have more questions the please mail me !!!!best regards,
phnd = OpenProcess(&H10000, False, pid)pid 为你获取的进程id
phnd为这个进程句柄