Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 25th, 2012, 03:12 AM
YellowDOg YellowDOg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 2 YellowDOg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 12 sec
Reputation Power: 0
Smile Prevent process from kill or hide it from TaskBar

Hello.
Fist of all sorry, my English is not good.

So, I developing a delphi application, which is timer. The idea is: in one room there are 20 pcs for example. One of them is server. When user wanna use a computer, he calls to the server operator, and the server operator allows to him to use some of this 20 computers for 1 hour for example. When the time is off, the server sends signall and the client computer reboot automatic.

So here is the problem. When i run my client application, it can recieve commands from the server. I mean this time limitations. But if the client closes this application, the limits are gone. So, I disable the Close button of the form, but process can still be killet by TM of Windows 7. And this is not good. Can someone give me an idea, how to hide it or to prevent process kill?
I am using Delphi 7

P.S. I know that this infomation can be used for... not good ideas, so if someone has an idea, send it at pm, please.
Thank you for the help, and I hope you can understand what i have wrote ;D

Reply With Quote
  #2  
Old July 25th, 2012, 08:32 AM
majlumbo majlumbo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 255 majlumbo User rank is Lance Corporal (50 - 100 Reputation Level)majlumbo User rank is Lance Corporal (50 - 100 Reputation Level)majlumbo User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 2 m 15 sec
Reputation Power: 5
Instead of running an application, which obviously the use can easily terminate, create a Windows Service Application. Here is a tutorial on how to do so,

http://www.tolderlund.eu/delphi/service/service.htm

Also, a service has two properties that you can set:

AllowPause Boolean
AllowStop Boolean

Set both to False, and it will be more difficult for your user to kill the service (but not impossible)

Reply With Quote
  #3  
Old July 25th, 2012, 08:54 AM
YellowDOg YellowDOg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 2 YellowDOg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 12 sec
Reputation Power: 0
Thank you. I`ll try tonight and I`ll report the result

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Prevent process from kill or hide it from TaskBar

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap