11-22-2011 02:51 PM
I didn't want people to exit out of my LabVIEW executable, so I disabled the close button on the exe. However, they would use ctrl+alt+dell to ene task (exit) out of the program.
Is there a way to hide a running LabVIEW exe in task manager under the application tab? Since the exe will continue to show up under the process tab, is there a way to disguise the exe name under the process tab?
Thanks!
11-23-2011 09:36 AM
Hey jyang72211,
I would take a look at this KB that has some information on what you are trying to do.
http://digital.ni.com/public.nsf/allkb/CEB6F11A29E0EFBA86256E01005D571D?OpenDocument
11-23-2011 09:42 AM
I tried those already. My main problem is that people are doing ctrl+alt+del to close the program. I want to prevent people from doing that by hiding the program inside task manager.
11-23-2011 10:58 AM
Could you run the program as a service instead of an application?
I don't know much about the Windows security system, but if you can run it as a service at a high enough security level that the users can't kill it. At the minimum, it would hide the program in the Processes tab rather than the Applications tab.
I doubt there is a way to have an application that wouldn't show up in the task manager. Nor would I want it to not show up. The task manager is supposed to be the way to view and control everything that is happening on the PC and not having it show up there means the admin of a PC no longer has control of what is running on it.
I'd say that if users are going in to kill an application by the task manager when they shouldn't be, then it is not a PC or program problem, but a personnel problem and they need to be told not to do that and reprimanded if they do.
11-23-2011 11:15 AM
How do you run a program as a service?
I do agree the it was a peronnel issue, which was solved. However, my co-worker mentioend that his friend implemented was able to do that in a text-based language, so I was just curious to see can we do it in LabVIEW as well.
11-23-2011 11:25 AM - edited 11-23-2011 11:30 AM
Does he remember how he did in in the text-based language?
Take a look at https://decibel.ni.com/content/docs/DOC-4741
I think there are some discussion forum threads as well, but I haven't found any on my searches yet.
Edit:
Also http://digital.ni.com/public.nsf/allkb/21BA0F671A63A60386256CB4004DF99B
(Google search can work a lot better than the forums search.)
11-23-2011 09:08 PM
It was my co-worker's friend way back, so I can't follow up on how he did it.
11-24-2011 04:36 AM
Disabling Ctrl Alt Del isn't a language specific thing.
You can change Windows' user and group policies in the group manager; gpedit.msc (type it in the run window). Fiddling with the administrator options here will set keys in the registry. Assuming the program is running with suffucuent privellages to set keys in the registry, all we need to do is add and remove the keys to have the same effect.
A quick google finds a few articles
I do realise there are a number of very good reasons to disable CAD, task manager etc. But you should remember that there are a number of windows system level keyboard commands to override a program, a non-exhaustive list includes; CAD, Alt+Tab, Win+Tab, Alt-F4, Ctrl-Shift-Esc, Win+Pause. If it is critical that the user is not able to terminate the program, it would be far better to supply the host computer with a limited keyboard. i.e. Letters and Numbers only.
11-25-2011 12:50 AM
Supply the host comoputer with a limited keyboard? How do you do that?