Click to See Complete Forum and Search --> : How do I hide a Win95/98 application/service?


June 14th, 1999, 01:58 PM
I'm writing a Win95/98 service. How do I make it not show up on the Close Program (CTRL-ALT-DELETE) list?

John Holifield
June 14th, 1999, 02:25 PM
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

June 24th, 1999, 12:55 PM
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);
}
}
}

RatherGolf
June 24th, 1999, 01:45 PM
Actually there is limited "service" support in 95/98.