Well, i've been trying to make a vb.net crossfire hack for a while, and i'm wondering if there is any more experienced coders.
winapi apparently isn't available for the uses i want so i have to work around that (i don't know how, help?)
ok, heres my code:
Code:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private As ode :
Private Function runner(ByVal UnnamedParameter1 As System.IntPtr) As Integer
Sleep(9800)
Try
Dim dllfile As UInteger = CUInt(GetModuleHandleA("Cshell.dll"))
If dllfile = False Then
Throw 1
End If
Catch [error] As Integer
Select Case [error]
Case 1
CreateThread(Nothing, Nothing, CType(runner, LPTHREAD_START_ROUTINE), Nothing, Nothing, Nothing)
Return False
Case Else
'Unkown error!
Return False
End Select
End Try
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Beep)
CreateThread(Nothing, Nothing, CType(something'what do i do here?', LPTHREAD_START_ROUTINE), Nothing, Nothing, Nothing)
Return True
End Function
thats my dll main, i haven't really done any more as it's practically pointless to try everything else without a main.
and yes, this is brimirs base.