Welcome Guest.   Make a donation to an author on the site August 15, 2010, 10:29:56 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the full one-year retrospective report on DonationCoder.com.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Service Control 0.0.0.3 - My FARR2 Plugin Contest Submission #3  (Read 7927 times)
taichimaster
Charter Member
***
Posts: 158



View Profile WWW Give some DonationCredits to this forum member
« on: July 04, 2007, 04:05:02 AM »

Service Control 0.0.0.3

This plugin displays a list of win32 services and allows user to toggle its running state.  Th idea came from OGroeger and Mouser (See this thead: HERE)

A few things of note are:
0)  Only works on NT/2K/XP for now
1)  Only works if user is a member of the Administrator group - EDIT: also works on Vista now
2)  If a service is currently disabled, it enables it before starting.
3)  If a service has dependency services, it shows you the list of services that will also get stopped.
 
Depending on interest, I have some TODOs:
* add progress bar when start/stop services - DONE
* Vista compatibility (thinking of using ShellExecuteEx with "runas" verb to launch a separate script, or separate the code into a separate COM control so it could be elevated Just-In-Time) - DONE
* ability to run as standard user with admin impersonation

Installation:
Extract the zip file to the farr2 plugins directory then reload the plugins from the plugins listing screen.

Screenshot:











Version History

v0.0.0.1 (July 3rd, 2007)
Initial Release

v0.0.0.2 (July 5th, 2007)
[NEW] Added Progress Bar
[FIX] Changed default options to show progress bar and not display msgbox
      on success
[FIX] Set max wait time to 20 secs to avoid misbehaving services taking forever
      to start/shutdown

v0.0.0.3 (July 5th, 2007)
[NEW] Added Vista Support

Comments and constructive criticisms are welcome!

Thanks to hamradio for the beautiful icons!!!!  Kiss

* ServiceCtrl_0_0_0_3.zip (85.08 KB - downloaded 457 times.)
« Last Edit: July 06, 2007, 02:03:54 AM by taichimaster » Logged

jgpaiva
Global Moderator
*****
Posts: 4,174



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: July 04, 2007, 05:04:54 AM »

Fantastic!!  Kiss Kiss Kiss
Logged

Josh
Charter Honorary Member
***
Posts: 2,317



View Profile Give some DonationCredits to this forum member
« Reply #2 on: July 04, 2007, 06:26:57 AM »

I, for one, love this idea! Keep up the good work!
Logged

STOP THE MADNESS! Microsoft should not have to advertise it's competitors. Opera is getting far out of hand.
Lashiec
Member
**
Posts: 2,280


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #3 on: July 04, 2007, 08:36:21 AM »

Haha! He wants to take all the mugs! Grin

Good work!
Logged
Josh
Charter Honorary Member
***
Posts: 2,317



View Profile Give some DonationCredits to this forum member
« Reply #4 on: July 04, 2007, 08:56:06 AM »

What I would like to suggest is a right click context menu which allows the following:

Starting a service, Stopping a service, restarting a service, changing startup type (with a sub-context menu containing a list of startup types).
Logged

STOP THE MADNESS! Microsoft should not have to advertise it's competitors. Opera is getting far out of hand.
mouser
First Author
Administrator
*****
Posts: 24,131



plarker mouser see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: July 04, 2007, 09:04:09 AM »

yep, taichi and i have discussed that adding a feature to allow plugins to set a custom context menu for results needs to be added by me.

we also came up with the cool idea of having these custom context menu actions also be accessible through +keyword modifiers.  so if a plugin might register custom actions like "Start the service (+start)","Stop the service (+stop)", which would then let users either right click on a result to chose the action to perform, or else just type +start in their search and select the result to have it sent that command.
Logged
Josh
Charter Honorary Member
***
Posts: 2,317



View Profile Give some DonationCredits to this forum member
« Reply #6 on: July 04, 2007, 10:41:19 AM »

Well then add it mousey! Why are you SHAMMING?
Logged

STOP THE MADNESS! Microsoft should not have to advertise it's competitors. Opera is getting far out of hand.
OGroeger
Charter Member
***
Posts: 76


View Profile Give some DonationCredits to this forum member
« Reply #7 on: July 04, 2007, 11:28:44 AM »

@taichimaster: splendid  Thmbsup
Logged
taichimaster
Charter Member
***
Posts: 158



View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: July 05, 2007, 02:08:16 PM »

v0.0.0.2 (July 5th, 2007)

[NEW] Added Progress Bar
[FIX] Changed default options to show progress bar and not display msgbox on success
[FIX] Set max wait time to 20 secs to avoid misbehaving services taking forever to start/shutdown

Logged

taichimaster
Charter Member
***
Posts: 158



View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: July 05, 2007, 08:00:26 PM »

v0.0.0.3 (July 5th, 2007)
[NEW] Added Vista Support

This version will properly prompt for elevated perms. before starting/stopping the service  thumbs up  A ServiceCtrlHelper.exe will then be running with elevated privileges.

Caveat:  Since the adv. config are stored in the same directory as the plugin (c:\program files), they are normally being virtualized. ServiceCtrlHelper.exe will not be able to read those preferences and therefore will just do the default (show progress bar, show msgbox upon failure, and do not show msgbox upon success).
Logged

mouser
First Author
Administrator
*****
Posts: 24,131



plarker mouser see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: July 05, 2007, 08:03:50 PM »

Quote
Caveat:  Since the adv. config are stored in the same directory as the plugin (c:\program files), they are normally being virtualized. ServiceCtrlHelper.exe will not be able to read those preferences and therefore will just do the default (show progress bar, show msgbox upon failure, and do not show msgbox upon success).

I don't fully understand what you are saying the solution to this is..  Perhaps the options need to be stored in user profile subdir after all?
Logged
mouser
First Author
Administrator
*****
Posts: 24,131



plarker mouser see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: July 05, 2007, 08:05:15 PM »

also: looks like i need to upgrade the updater so that if its an update file that is a zip then it should prompt user to handle it.
Logged
lanux128
Global Moderator
*****
Posts: 5,112



plarker lanux128 see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: June 19, 2008, 07:03:42 PM »

a small request: how about adding a filter to show only currently active services and vice-versa? right now "sctrl +sall" lists about 90+ services (active & disabled) on my PC.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
SMF © 2006-2009, Simple Machines LLC

social bookmark this page