Powercf.exe & Windows Service
- From: Daniel <DFelix19@xxxxxxxxx>
- Date: Sun, 8 Jun 2008 20:02:58 -0700 (PDT)
Hi,
I have created a VS Windows Services project to call powercfg.exe
every 2mins (in a timerdelegate). In On Start event of the service I
have set the process file name to powercfg.exe and have set argument
as "/create "my power scheme" and started the process. In the delegate
fucntion first the get the avaliable scheme and check for my existing
scheme ("my power scheme"), if its there I set other power settings
like monitor timeout, disk timeout etc,. Here the catch is when the
service is started for the first time the On Start event does not
create a power scheme. I tried creating a power scheme in a windows
application and it created, but not in a windows service. Is there
anything that I am missing?
Thanks.
.
- Prev by Date: Re: Filename Encoding Help
- Next by Date: Re: ObservableCollection - notification when item has changed (not the collection)
- Previous by thread: Re: Filename Encoding Help
- Next by thread: Show only two font families ("Courier New", "Bitstream Vera Sans Mono") in font dialog box
- Index(es):
Relevant Pages
|