Howdy, Stranger!

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


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)

  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    | | free video tutorials and ebooks about \ C Swift JavaScript Visual Basic .NET Delphi Ruby MATLAB Python Assembly Objective-C C# PHP PL/SQL Java R Scratch C++ Visual Basic Perl Go Lua Julia COBOL Transact-SQL ML Scala Crystal Prolog Fortran Scheme Awk F# Clojure Alice Apex Erlang VBScript Lisp LabVIEW SAS Rust Hack Logo Bash Ada FoxPro Kotlin ABAP D Dart \ ___________

Sign In or Register to comment.