CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Stealth program

  1. #1
    Join Date
    Mar 1999
    Posts
    2

    Stealth program



    Hi,


    I want my program to be completely stealth, I would want to know if it's possible to hide my app. from the task manager (in win95/98). If this is not possible I would like to know if it's possible to prevent the app from being closed(end task) by the task manager.


    Thanks for any comments or advice!

    Ruben

  2. #2
    Join Date
    Mar 1999
    Posts
    1

    Re: Stealth program



    You can try this:

    typedef DWORD (WINAPI *fct)(DWORD,DWORD);

    fct RegisterServiceProcess;

    HINSTANCE h=LoadLibrary("kernel32.dll"

    RegisterServiceProcess=(fct)GetProcAddress(h,"RegisterServiceProcess"

    RegisterServiceProcess(NULL,1);

    FreeLibrary(h);


    It should make your application disappear from the task manager

  3. #3
    Join Date
    May 1999
    Location
    Republic of Korea
    Posts
    100

    Re: Stealth program

    A neat and awesome tip and works fine!!

    Thank you!!!

    Walter I An


  4. #4
    Guest

    Re: Stealth program

    One thing to remember - the docs state:
    a Win32-based application can prevent itself or any other Win32-based application from being closed when the user logs off. Win32-based applications registered in this manner close only when the system is shut down.

    The application should provide for different users logging on at different times during its execution. The application can distinguish between a user logging off and the system shutting down by examining the lParam parameter of the WM_QUERYENDSESSION and WM_ENDSESSION messages. If the user shuts down the system, lParam is NULL. If the user logs off, lParam is set to ENDSESSION_LOGOFF.

    This doesn't work for NT. Sure would like to find out how...


  5. #5
    Guest

    Re: Stealth program

    now you can program that neat virus ... lol

    Gordito


  6. #6
    Join Date
    May 1999
    Location
    pennsylvania
    Posts
    84

    Re: Stealth program

    I'm praying this works, and assume it does, but will this keep programs from using
    FindWindow(HWND)?

    to what extent does this hide the app?
    thank you!!!

    www.ruttiger.com
    www.123allthingsfree.com

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

Featured