[Help] Memory -> How to read/write floats and how to use multilevel pointers menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    freitag's Avatar Member
    Reputation
    5
    Join Date
    Jun 2008
    Posts
    74
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Memory -> How to read/write floats and how to use multilevel pointers

    Heyho,

    can some help me how to obtain some float values from memory and how to use multilevelpointers?

    VB6

    one pointer is ok and when the value is 2bytes - long but can't get it to work with floats.
    I got no clue how to use level2 pointers or even higher ;&

    [Help] Memory -> How to read/write floats and how to use multilevel pointers
  2. #2
    1814's Avatar Active Member
    Reputation
    21
    Join Date
    Mar 2008
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Public Declare Function ReadProcessMemoryA Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, <[In](), Out()> ByVal lpBuffer As Byte(), ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
        Public Function ReadSingle(ByVal processhandle As IntPtr, ByVal address As Integer) As Single
            Dim theBytes As Byte() = New Byte(3) {}
            ReadProcessMemoryA(processhandle, address, theBytes, 4, 0)
            Return BitConverter.ToSingle(theBytes, 0)
        End Function
    Basically I'm reading 4 Bytes (Float = 4 Bytes) and converting them with the BitConverter Class.

    EDIT:
    You could also read the Float directly with :
    Code:
    Public Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer

Similar Threads

  1. Replies: 2
    Last Post: 11-28-2013, 10:23 AM
  2. [Release] [C#] Standalone memory reads, writes, calls, and more
    By Jadd in forum WoW Memory Editing
    Replies: 8
    Last Post: 08-28-2013, 03:58 AM
  3. How do i know if a Bot is using memory reading / writing?
    By sturmtiger in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 01-06-2011, 06:31 AM
  4. [ArcEmu] Need help with SVN (how to use it)
    By Corpseshred in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 10-17-2010, 03:51 PM
  5. [HELP!]Dont Know How To Use C++ Scripts...
    By Lets See2 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-24-2008, 12:55 AM
All times are GMT -5. The time now is 03:00 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search