Jump to content

linha de codigo para esconder processos no taskmanager..


delfo

Recommended Posts

Acho que o titulo diz tudo, eu ja usei o getprocessbyname("nomeprocesso") enfim ja fiz tudo, o maximo que consegui foi esconder a janela mas eu queria mesmo esconder o processo no task manager e nao a janela.. se alguem me puder ajudar, o codigo que consegui ate agora foi:

Imports System.Runtime.InteropServices
Imports System.Diagnostics

    Public Class Form1
        Const SW_HIDE As Integer = 0
    Const SW_RESTORE As Integer = 1
        Dim hWnd As Integer
        Dim p As Process() = Process.GetProcessesByName("notepad")
        <DllImport("User32")> Private Shared Function ShowWindow(ByVal hwnd As Integer, ByVal nCmdShow As Integer) As Integer
        End Function

        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim p As Process() = Process.GetProcessesByName("notepad")
            hWnd = p(0).MainWindowHandle.ToInt32
            ShowWindow(hWnd, SW_HIDE)
        End Sub


    Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim p As Process() = Process.GetProcessesByName("notepad")
        hWnd = p(0).MainWindowHandle.ToInt32
        ShowWindow(hWnd, SW_RESTORE)
    End Sub
End Class

btw o button2 nao esta a funcionar.. nao consigo perceber o problema..

Link to comment
Share on other sites

ja fiz a procura mas nao encontro nada relacionado com "hide process" ou esconder processos.. anyways, eu nao quero criar virose nenhuma nem prejudicar ninguem apenas queria ver se era possivel quebrar uma protecao, essa protecao consiste no seguinte, ve se usas um programa chamado sandbox se usas ele nao arranca se nao usas ele arranca, agr a ideia era correr esse sandbox ao mesmo tempo que o programa em si.. podem pesquisar e ver que sandbox nao e nada de mal.. xD

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.