Value Overflow menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Lindoz12's Avatar Member
    Reputation
    19
    Join Date
    Apr 2007
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Value Overflow

    Hello... I tried one of the HighJump codes in Cheat Engine 5.4: Address 008D6080, Type 4 Bytes, Value 3237909464 originally 3247909464 with highjump... But when i tried to make my trainer it got f*cked
    Here is my code snippet:

    Public Class Form1
    Private Const PROCESS_ALL_ACCESS As Long = &H1F0FFF
    Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, ByVal lpdwProcessId As Long) As Long
    Private 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 Integer, ByRef lpBuffer As Integer, ByVal nSize As Long, ByVal lpNumberOfBytesWritten As Long) As Long
    Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
    Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As Long
    Private Declare Function ReadProcessMem Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Long, ByVal lpNumberOfBytesWritten As Long) As Long
    Public ProcessHandle As Long
    Public Sub WriteByte(ByVal Address As Long, ByVal Value As Integer)
    Dim hwnd As Long, pid As Long, phandle As Long
    '2: 9090, write in reverse
    hwnd = FindWindow(vbNullString, "World of Warcraft")
    If (hwnd <> 0) Then
    GetWindowThreadProcessId(hwnd, pid)
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle <> 0) Then
    WriteProcessMemory(phandle, Address, Value, 1, 0&)
    End If
    CloseHandle(phandle)
    End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    WriteByte("&H8D6080", "3247909464")
    TextBox1.Text = "Injection??."
    WriteByte(&H8D6080, &H8
    TextBox1.Text = "Injection Complete."
    End Sub
    End Class

    But i get an error "Arithmetic operation resulted in an overflow."
    How to prevent this?

    Value Overflow
  2. #2
    unknow2k's Avatar Member
    Reputation
    7
    Join Date
    Mar 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello... I tried one of the HighJump codes in Cheat Engine 5.4: Address 008D6080, Type 4 Bytes, Value 3237909464 originally 3247909464 with highjump...
    ....
    Code:
    WriteProcessMemory(phandle, Address, Value, 1, 0&)



    WriteProcessMemory Function

    Writes data to an area of memory in a specified process. The entire area to be written to must be accessible or the operation fails.

    BOOL WINAPI WriteProcessMemory(
    __in HANDLE hProcess,
    __in LPVOID lpBaseAddress,
    __in LPCVOID lpBuffer,
    __in SIZE_T nSize,
    __out SIZE_T* lpNumberOfBytesWritten
    );
    Parameters
    hProcess
    A handle to the process memory to be modified. The handle must have PROCESS_VM_WRITE and PROCESS_VM_OPERATION access to the process.

    lpBaseAddress
    A pointer to the base address in the specified process to which data is written. Before data transfer occurs, the system verifies that all data in the base address and memory of the specified size is accessible for write access, and if it is not accessible, the function fails.

    lpBuffer
    A pointer to the buffer that contains data to be written in the address space of the specified process.

    nSize
    The number of bytes to be written to the specified process.

    lpNumberOfBytesWritten
    A pointer to a variable that receives the number of bytes transferred into the specified process. This parameter is optional. If lpNumberOfBytesWritten is NULL, the parameter is ignored.

    Return Value
    If the function succeeds, the return value is nonzero.

    If the function fails, the return value is 0 (zero). To get extended error information, call GetLastError. The function fails if the requested write operation crosses into an area of the process that is inaccessible.
    Last edited by unknow2k; 04-06-2008 at 01:55 PM.

  3. #3
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its.... a.... float... goddamit! >_>

Similar Threads

  1. Cheat Engine Values
    By cosmo145 in forum World of Warcraft Bots and Programs
    Replies: 45
    Last Post: 05-06-2007, 02:36 PM
  2. CE No fall damage value?
    By foxfire60 in forum World of Warcraft General
    Replies: 5
    Last Post: 01-27-2007, 06:32 PM
  3. 2.03 CE Value NO FALL DMG
    By hydroponpon in forum World of Warcraft General
    Replies: 2
    Last Post: 01-12-2007, 01:34 AM
  4. CE Teleport Value Finding
    By Ednasil in forum World of Warcraft Bots and Programs
    Replies: 23
    Last Post: 01-08-2007, 12:05 PM
  5. Any new working values for cheat engine
    By ygf1975 in forum World of Warcraft General
    Replies: 3
    Last Post: 09-20-2006, 08:47 PM
All times are GMT -5. The time now is 04:13 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search