Results 1 to 4 of 4

Thread: Disallow Terminate Process

  1. #1
    Guest

    Post

    Ok, I already know how to hide my program from Ctrl-Alt-Delete. Now I need to either 1. Hide My Program from running processes or 2. Disallow Termination of my Application. My app is a security application so I can't let the user trying to wreck the machine to kill my app. For demonstration purposes of this problem get TaskInfo2000 program and then create a small exe. Run both programs and terminate the process with TaskInfo2000. Now, try and prevent it from happening. Please help me with this! I've been everywhere and no one really has any answers. Thanks!

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Post

    Try to hide your application from the service list as below:

    Dim pid As Long
    Dim reserv As Long
    pid = GetCurrentProcessId()
    reserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)

    and declare the following API function:
    Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
    Public Declare Function GetCurrentProcess Lib "kernel32" () As Long
    Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long

    Public Const RSP_SIMPLE_SERVICE = 1
    Public Const RSP_UNREGISTER_SERVICE = 0

    ____________________
    Chris.C
    Software Engineer
    [email protected]

  3. #3
    New Member
    Join Date
    Feb 2000
    Location
    Bucharest,Romania
    Posts
    1

    Post

    Originally posted by Chris:
    Try to hide your application from the service list as below:

    Dim pid As Long
    Dim reserv As Long
    pid = GetCurrentProcessId()
    reserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)

    and declare the following API function:
    Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
    Public Declare Function GetCurrentProcess Lib "kernel32" () As Long
    Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long

    Public Const RSP_SIMPLE_SERVICE = 1
    Public Const RSP_UNREGISTER_SERVICE = 0

    ____________________
    Chris.C
    Software Engineer
    [email protected]
    This tip down't work at all on win2k
    There is no RegisterServiceProcess function in kernel32.dll
    Costin

    [email protected]




    [This message has been edited by rcostin (edited 02-11-2000).]

  4. #4
    Guest

    Post

    Thanks to everyone for their feedback. If anyone knows how to hide running processes in Win2K please post here. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width