Prevent Your Application from Being Displayed in the Win 95/98 Task List

Category:
System/API
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
When the user presses ctrl-alt-delete, a list of running tasks appear. You can use this code to prevent your application from appearing in this list. This would prevent the user from ending your application by clicking the End Task button that appears in this dialog.

Note: These functions only work on Windows 95 and 98. If you want to use it in a widely distributed application use, this code to check the OS version before calling them.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: