Imports HackLibrary
Imports DllImports
Imports Snippets
Public Class Form1
Dim my_hack As QuickHack
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If my_hack Is Nothing Then 'Check if we've initialized my_hack
'Create a new QuickHack object with the process ID of the process we want to hack,
'make sure to check if it's running first, you can do that yourself
my_hack = new QuickHack(Process.GetProcessesByName("some_process")(0).Id)
End If
If my_hack IsNot Nothing AndAlso my_hack.hasWriteAccess Then 'Check if we can write memory
my_hack.writeMemory(Of Integer)(&HDEADBEEF, 1337) 'Write an integer with the value of 1337 into 0xDEADBEEF
End If
End Sub
End Class
