Invisible programs in Close Program applet

I am making a network program for Windows 9x using Visual Basic 5. I was wondering if it was possible when I press Ctrl-Alt-Del, that my program would not be in the list of active tasks? I have been told a TSR does this, but Visual Basic isn't actually the sort of programming language to make TSR's :) I just hope its a simple API but anything that suggests or instructs on what to do would be fantastic :)


  • Quite simple actually:

    Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal ProcessID As Long, ByVal ServiceFlags As Long) As Long

    Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long

    x = RegisterServiceProcess(GetCurrentProcessId, 1)

    Hope this helps!

  • Oops, almost forgot the cleanup:

    Use this to remove the registering when your app is done.

    x = RegisterServiceProcess(GetCurrentProcessId, 0)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!