|
-
June 14th, 1999, 01:58 PM
#1
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?
-
June 14th, 1999, 02:25 PM
#2
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
-
June 24th, 1999, 12:55 PM
#3
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);
}
}
}
-
June 24th, 1999, 01:45 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|