[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

Create hidden process??

Is there any way to shell a remote application but have it so that the shelled application doesn't appear in the task list??

I'm currently using the CreateProcess API call to shell the program so that I can monitor for when the program terminates by using the WaitForSingleObject call.

Examples would be appreciated.

Cheers

Pete
0
peterwest
Asked:
peterwest
  • 2
1 Solution
 
kennym141282Commented:
Declare Function RegisterServiceProcess Lib "kernel32" (ByVal lpProcessID As Long, ByVal lpShow As Long) As Long

Declare Function GetCurrentProcessId Lib "kernel32" () As Long

Sub Main()

   Call RegisterServiceProcess(GetCurrentProcessID,1)

End Sub

NB 0 turns it off
0
 
kennym141282Commented:
ooops,

instead of GetCurrentProcessID use the process id returned from the CreateProcess API....

I just re-read your question!!
0
 
peterwestAuthor Commented:
Thanks,

That's just what I was looking for - you were correct in the first place actually - it turns out it's not the shelled process I want to hide but the application which calls it....

Pete
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now