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

    How do I hide a Win95/98 application/service?

    I'm writing a Win95/98 service. How do I make it not show up on the Close Program (CTRL-ALT-DELETE) list?


  2. #2
    Join Date
    Apr 1999
    Location
    Alabama, USA
    Posts
    261

    Re: How do I hide a Win95/98 application/service?

    I'm not aware of anyway to prevent your application from appearing in the task list. I wouldn't swear to it or anything, but I sincerely doubt that it can be done. Also, there is no such thing as a 'service' on Windows 95/98.

    I apologize if this reply is not exactly what you were hoping to find out, but perhaps it will save you the frustration of trying to do the impossible.

    Good Luck,
    John




  3. #3
    Guest

    Re: How do I hide a Win95/98 application/service?

    There is some code somewhere in code gure that does it. I used it but don't remember where.
    Here's mine:

    void CChangePWApp::HideAppFromTaskList(BOOL bUnLoad)
    {
    OSVERSIONINFO VersionInformation;
    VersionInformation.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);

    if (GetVersionEx(&VersionInformation))
    {
    if (VersionInformation.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS)
    { // this will hide our app from the Close application task list in 95
    fct RegisterServiceProcess;
    HINSTANCE h=LoadLibrary("kernel32.dll");
    if (!h)
    AfxMessageBox("Couldn't load kernel32");
    RegisterServiceProcess=(fct)GetProcAddress(h,"RegisterServiceProcess");
    if (bUnLoad)
    RegisterServiceProcess(NULL,0);
    else
    RegisterServiceProcess(NULL,1);
    FreeLibrary(h);
    }
    }
    }



  4. #4
    Join Date
    Jun 1999
    Posts
    21

    Re: How do I hide a Win95/98 application/service?

    Actually there is limited "service" support in 95/98.


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