Results 1 to 2 of 2
  1. #1
    ghax30's Avatar
    Join Date
    Feb 2009
    Posts
    3
    Reputation
    10
    Thanks
    0

    Warrock..Can't open processID..

    Hey guys,
    Well I recently went back to playing warrock for some fun, but now none of my hacks work..? Im still making them in VB6 with this as the base module..

    Public Const PROCESS_ALL_ACCESS = &H1F0FFF


    'API Declaration
    Public Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long
    Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
    Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
    Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As Long
    Public Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
    Public Declare Function ReadProcessMem Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByRef lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long



    Public Function EditMemory(gamewindowtext As String, address As Long, value As Long)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    Exit Function
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    WriteProcessMemory phandle, address, value, 4, 0&
    CloseHandle hProcess
    End Function

    Public Function ReadMemory(gamewindowtext As String, address As Long, valbuffer As Long)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    Exit Function
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    ReadProcessMem phandle, address, valbuffer, 4, 0&
    CloseHandle hProcess
    End Function


    i have modified this module to make it "undetectable"
    and have the most recent addresses as of 1-19-09
    What i don't get is now instead of them actually working, all i get is an error.
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    I don't get what's going on.. im noob
    can anyone help?

    TIA,
    Str8fe
    Last edited by ghax30; 02-03-2009 at 06:58 AM.

  2. #2
    olie122333's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    438
    Reputation
    10
    Thanks
    20
    Quote Originally Posted by ghax30 View Post
    Hey guys,
    Well I recently went back to playing warrock for some fun, but now none of my hacks work..? Im still making them in VB6 with this as the base module..

    Public Const PROCESS_ALL_ACCESS = &H1F0FFF


    'API Declaration
    Public Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long
    Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
    Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
    Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As Long
    Public Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
    Public Declare Function ReadProcessMem Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByRef lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long



    Public Function EditMemory(gamewindowtext As String, address As Long, value As Long)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    Exit Function
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    WriteProcessMemory phandle, address, value, 4, 0&
    CloseHandle hProcess
    End Function

    Public Function ReadMemory(gamewindowtext As String, address As Long, valbuffer As Long)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    Exit Function
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    ReadProcessMem phandle, address, valbuffer, 4, 0&
    CloseHandle hProcess
    End Function


    i have modified this module to make it "undetectable"
    and have the most recent addresses as of 1-19-09
    What i don't get is now instead of them actually working, all i get is an error.
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    I don't get what's going on.. im noob
    can anyone help?

    TIA,
    Str8fe
    The WarRock process is hidden from the point the hackshield box dissapears.

Similar Threads

  1. Can't open topics in warrock international
    By bnuubje in forum WarRock - International Hacks
    Replies: 2
    Last Post: 12-25-2008, 03:06 PM
  2. How can I open 2 or more instance of CA?
    By michael-kyle in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 08-23-2008, 05:45 AM
  3. can't open many things.... (like warrock hacks)
    By RumbleBall in forum WarRock - International Hacks
    Replies: 30
    Last Post: 07-01-2008, 07:33 AM
  4. Can't get processId
    By alphati3r in forum WarRock - International Hacks
    Replies: 22
    Last Post: 09-08-2007, 03:00 PM
  5. [Discontinued] hi can some1 make me a warrock sig
    By CrUsHa in forum Help & Requests
    Replies: 22
    Last Post: 06-15-2006, 08:52 AM

Tags for this Thread