🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4618

Re: Windows Shutdown Replacement

#4618
From: Tom
Date: Thu, 29 Dec 2005 16:29
45 lines
3094 bytes
Don't know what to say on your effort and persistance, except thank you 
very much.

Remy Lebeau (TeamB) wrote:
> "Tom" <tom@net.com> wrote in message news:43b2e11a@newsgroups.borland.com...
> 
> 
>>My application has three radiobuttons (Stand By, Shutdown and
>>Restart) I also have a TEdit control in which user enters desired time
>>to execute selected option (format is HH:MM:SS -> for example
>>shutdown my computer at 19:15:00)
> 
> 
> Then I suggest you not try to replace/alter the existing shutdown dialog for
> that.  Provide your own configuration dialog in your application that teh
> user can bring up at any time.  Once the user's desired time value has been
> saved, you can have the application continuously monitor the current system
> time.  When the configured system time arrives, call the ExitWindows/Ex()
> function to perform the desired shutdown operation programmably.
> 
> 
>>What I'm trying to do is not to have a shortcut on my desktop and
>>not to call my application by double click on the icon on the desktop
> 
> 
> You could write a service that automatically runs in the background at
> system startup, continuously monitoring the time.  You could then provide a
> separate .exe or .cpl executable for configuring the service.  In the case
> of the .cpl, since it becomes part of the system's Control Panel, you can
> make it so only admins can run it, and thus only admins can change the time
> your shutdown operation is performed.  You could also specify admin
> permisions to the .exe if you want to go that route instead.
> 
> 
>>or anywhere else, but to call it by clicking on the Start->Turn Off
> 
> Computer.
> 
> Why, though?  That is not necessary, and it makes things harder not only for
> you, but for the user as well.
> 
> 
> Gambit
> 
> 
Technical Details
Message-ID: <43b40e55@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed1.eu.ignite.net!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43ad3757@newsgroups.borland.com> <43ae6026@newsgroups.borland.com> <43afd98b$1@newsgroups.borland.com> <43b25917$1@newsgroups.borland.com> <43b26430$1@newsgroups.borland.com> <43b2cfcc$1@newsgroups.borland.com> <43b2e11a@newsgroups.borland.com> <43b2e2e8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2724a76b8d806cf8
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 29 Dec 2005 17:29:01 +0100
From: Tom <tom@net.com>
Reply-To:  tom@net.com
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Windows Shutdown Replacement
References: <43ad3757@newsgroups.borland.com> <43ae6026@newsgroups.borland.com> <43afd98b$1@newsgroups.borland.com> <43b25917$1@newsgroups.borland.com> <43b26430$1@newsgroups.borland.com> <43b2cfcc$1@newsgroups.borland.com> <43b2e11a@newsgroups.borland.com> <43b2e2e8$1@newsgroups.borland.com>
In-Reply-To: <43b2e2e8$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.202.113.223
Message-ID: <43b40e55@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1135873621 213.202.113.223 (29 Dec 2005 08:27:01 -0700)
Lines: 45
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed1.eu.ignite.net!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail