Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 10:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Hilfe zum Suspender

Discussion on Hilfe zum Suspender within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 1
Join Date: Nov 2010
Posts: 581
Received Thanks: 388
Hilfe zum Suspender

Also ich mache grad einen Suspender in VisualStudio 10 und ich habe da ein problem und weiß nicht was ich da tuhen soll Wenn ich Internet Explorer oder einen anderen solchen Process Suspende funktioniert es aber wenn ich ein spiel suspenden will funktioniert es nicht Hier das Programm-Code des programms =>

Module1.vb
Code:
Module Module1
    Public Enum ThreadAccess As Integer
        TERMINATE = (&H1)
        SUSPEND_RESUME = (&H2)
        GET_CONTEXT = (&H8)
        SET_CONTEXT = (&H10)
        SET_INFORMATION = (&H20)
        QUERY_INFORMATION = (&H40)
        SET_THREAD_TOKEN = (&H80)
        IMPERSONATE = (&H100)
        DIRECT_IMPERSONATION = (&H200)
    End Enum

    Public Declare Function OpenThread Lib "kernel32.dll" (ByVal dwDesiredAccess As ThreadAccess, ByVal bInheritHandle As Boolean, ByVal dwThreadId As UInteger) As IntPtr
    Public Declare Function SuspendThread Lib "kernel32.dll" (ByVal hThread As IntPtr) As UInteger
    Public Declare Function ResumeThread Lib "kernel32.dll" (ByVal hThread As IntPtr) As UInteger
    Public Declare Function CloseHandle Lib "kernel32.dll" (ByVal hHandle As IntPtr) As Boolean

End Module
Form1.vb
Code:
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub
    Private Sub SuspendProcess(ByVal process As System.Diagnostics.Process)
        For Each t As ProcessThread In process.Threads
            Dim th As IntPtr
            th = OpenThread(ThreadAccess.SUSPEND_RESUME, False, t.Id)
            If th <> IntPtr.Zero Then
                SuspendThread(th)
                CloseHandle(th)
            End If
        Next
    End Sub

    Private Sub ResumeProcess(ByVal process As System.Diagnostics.Process)
        For Each t As ProcessThread In process.Threads
            Dim th As IntPtr
            th = OpenThread(ThreadAccess.SUSPEND_RESUME, False, t.Id)
            If th <> IntPtr.Zero Then
                ResumeThread(th)
                CloseHandle(th)
            End If
        Next
    End Sub

    Dim ExeName As String = IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath)

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim game As Process() = Process.GetProcessesByName(TextBox1.Text)
            SuspendProcess(game(0))
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim game As Process() = Process.GetProcessesByName(TextBox1.Text)
        ResumeProcess(game(0))
    End Sub
End Class
Ich bedanke mich schon im vorraus für eure Hilfe.
MfG CrashXx.
CrashXx is offline  
Reply


Similar Threads Similar Threads
Suspender
01/13/2011 - S4 League Hacks, Bots, Cheats & Exploits - 7 Replies
I need Suspender. Give me Names pls
Hilfe mit dem Suspender
11/09/2010 - S4 League - 2 Replies
Kann Geclosed werden (:
suspender
10/15/2010 - S4 League - 6 Replies
Hallo zusammen ich suche eine weg s4 league zu suspenden da die suspender dich runterlade nicht funktoinieren und ich manche sachen noch nicht verstehe also ich würds nett finden wenn mir einer erklären könnte wie ich jetz genau s4 supendet bekomme danke im voraus mfg linker
suspender
09/09/2010 - S4 League - 0 Replies
who give me a working suspender i need it for mine gun
Suspender
06/06/2010 - General Gaming Discussion - 0 Replies
Hey, Can someone show me how to suspend succesfully in TeamViewer? Please pm me...



All times are GMT +2. The time now is 10:42.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.