Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports InjectionLibrary
- Imports JLibrary.PortableExecutable
- in button or publicform
- Dim injector As InjectionMethod = InjectionMethod.Create(InjectionMethodType.ManualMap)
- Dim processId As Integer = Process.GetProcessesByName("ros")(0).Id
- Dim hModule As IntPtr = IntPtr.Zero
- Using img As New PortableExecutable(My.Resources.d3dros)
- hModule = injector.Inject(img, processId)
- End Using
- If hModule <> IntPtr.Zero
- MessageBox.Show("Injected")
- Else
- ' injection failed
- If injector.GetLastError() IsNot Nothing
- MessageBox.Show(injector.GetLastError().Message)
- End If
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement