LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable end task?

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!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 9
(4,110 Views)

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

Regards,

Eric L.
Applications Engineering Specialist
National Instruments
Message 2 of 9
(4,090 Views)

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.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 9
(4,087 Views)

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.

Message 4 of 9
(4,078 Views)

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.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 5 of 9
(4,075 Views)

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.)

Message 6 of 9
(4,068 Views)

It was my co-worker's friend way back, so I can't follow up on how he did it. 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 7 of 9
(4,051 Views)

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.

 

_____________________________
- Cheers, Ed
0 Kudos
Message 8 of 9
(4,037 Views)

Supply the host comoputer with a limited keyboard?  How do you do that?  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 9 of 9
(4,019 Views)