Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
public Function checkMemory(ByVal Address As Integer, ByVal Value As Long, ByVal Bytes As Integer)
Dim iw4mpLookUp As Process() = Process.GetProcessesByName("iw4mp")
If iw4mpLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
ReadProcessMemory(processHandle, Address, Value, Bytes, Nothing)
My.Settings.address = Value
My.Settings.check = address
CloseHandle(processHandle)
Return Nothing
End Function
For Each exp As String In My.Settings.xp
Dim address As String
address = My.Settings.check
checkMemory()
If My.Settings.check = exp And address = &H1B2C89C Then
Select Case txtequip1.Text
Case "Frag Grenade - 4"
If value <= 3600 Then
memoryh4x(&H1B2C89C, 3600, 4)
End If
End select
End If
end sub
checkMemory()
(ByVal Address As Integer, ByVal Value As Long, ByVal Bytes As Integer)

Imports MemHack.BlubbsDll
Private mwhack As New MemoryHacking("iw4mp", "cshell.dll")
Private Sub equip_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim address As String = "&H1B2C89C"
Dim value As Integer
value = mwhack.ReadMemory(&H1B2C89C)
If value < 800300 Or value > 3600 And address = &H1B2C89C Then
Select Case txtequip.Text
Case "Frag Grenade - 4"
If address <= 3600 Then
memoryh4x(&H1B2C89C, 3600, 4)
End If
end select
end if
end sub