what is "WriteInteger"

Posts 1–6 of 6 · Page 1 of 1
what is "WriteInteger"
What is "WriteInteger"
"WriteInteger" where it came from?
I'm a newbie
What the hell I do not know where she came from "WriteInteger"

where is function source? Help me
sorry, bad English

happy new year

한국인 계시면 한글로 답변 부탁드립니다.
저 함수는 도대체 어디서 나오는건가요? 소스코드를 알고싶은데 출처가 없네요.
Thats probably a function from some memory class, it has to write a integer value to some address.I found it in a class im using:
Code:
Public Sub WriteInteger(ByVal ProcessName As String, ByVal Address As Integer, ByVal Value As Integer, Optional ByVal nsize As Integer = 4)
        If ProcessName.EndsWith(".exe") Then
            ProcessName = ProcessName.Replace(".exe", "")
        End If
        Dim MyP As Process() = Process.GetProcessesByName(ProcessName)
        If MyP.Length = 0 Then
            MsgBox(ProcessName & " isn't open!", vbExclamation, "Error")
            Exit Sub
        End If
        Dim hProcess As IntPtr = OpenProcess(PROCESS_ALL_ACCESS, 0, MyP(0).Id)
        If hProcess = IntPtr.Zero Then
            MsgBox("Failed to open " & ProcessName & "!", vbExclamation, "Error")
            Exit Sub
        End If

        Dim hAddress, vBuffer As Integer
        hAddress = Address
        vBuffer = Value
        WriteProcessMemory1(hProcess, hAddress, CInt(vBuffer), nsize, 0)
        CloseHandle(hProcess)
    End Sub
thanks!! happy new year
Quote Originally Posted by abuckau907 View Post
http://www.mpgh.net/forum/33-visual-...ory-part1.html - memory read/write tut for vb.net

If you don't know why you need some functions, you probably don't/can't need them yet

Do you know much about memory (ram)/Windows OP ?
thanks!!!
i want that
i know ReadProcessMemory WriteProcessMemory
compare
thank you

---------- Post added at 08:20 AM ---------- Previous post was at 08:18 AM ----------

happy happy New Year's Day~~
Yep. You too! Just a word of caution: be careful messing with memory, because maybe you will effect things you don't want to Good luck.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?