|
-
Oct 12th, 2000, 08:33 AM
#1
Thread Starter
Junior Member
I'd like to have a program run in the back ground, not be shown in the NT task manager Application listing - these
things I can do.
I'd also like to do one of two additional things. Hide the program from the
NT task manager Processes listing, or be able to have the program unable to be shutdown like the system exe's -
when a user tried to shut one down using the
processes listing in task manager, a window pops up and says
"The operation could not be completed. Access Denied."
Thanks in advance.
Lawson.
-
Oct 12th, 2000, 08:54 AM
#2
New Member
i know absoultly nothing about VB but...
I don't know alot about VB but i program alt of languages and I am trying to learn VB. Just a suggestion (don't know if it will work) but can you write a function that executes on exit that would recall the program? or write another program with a timer pulse of 1 and boot the program if it is closed. Just some small ideas from a newbie
Hope that helps,
-
Oct 12th, 2000, 09:01 AM
#3
Thread Starter
Junior Member
Mallek
Thanks for the input. Yes, those suggestions could be the
next best options, if I cannot do what I really want.
-
Oct 12th, 2000, 09:17 AM
#4
Frenzied Member
You can use the form_QueryUnload method to prevent the app from being closed. If UnloadMode = 3 then set Cancel to True.
The following are possible values for UnloadMode.
Code:
QueryUnload values for UnloadMode
Constant Value Description
vbFormControlMenu 0 User has chosen Close command from the Control-menu box on a form
vbFormCode 1 Unload method invoked from code
vbAppWindows 2 Current Windows session ending
vbAppTaskManager 3 Windows Task Manager is closing the application
vbFormMDIForm 4 MDI child form is closing because the MDI form is closing
-
Oct 12th, 2000, 11:32 AM
#5
Thread Starter
Junior Member
ccoder
Thanks for the info, but this still allows for user to shut down program thru the end task option in task manager/process list.
-
Oct 12th, 2000, 12:48 PM
#6
Frenzied Member
-
Jul 2nd, 2003, 05:53 AM
#7
PowerPoster
-
Jul 2nd, 2003, 06:56 AM
#8
Addicted Member
If you can dream it, you can do it - Moo Power!
-
Jul 2nd, 2003, 08:22 AM
#9
Hyperactive Member
Why?
Why do you want to write an indestructible, phantom program?
I know that I wouldn't want any program running surreptitiously on my PC that I had absolutely no control over, and the Task manager is typically the last resort.
I already feel like I'm constantly competing with Microsoft for control of my own PCs. So, what's the point?
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
-
Jul 2nd, 2003, 11:19 AM
#10
PowerPoster
Becuase I am writing an app that monitors people's internet usage and they can disable it if they want and turn it on when they want. THAT is not good.
-
Jul 2nd, 2003, 03:58 PM
#11
PowerPoster
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
|