RAA - win32-service/0.4.2

win32-service / 0.4.2

Short description: Interface to Win32 services
Category: Library/Win32
Status: beta
Created: 2003-10-11 00:13:18 GMT
Last update: 2004-07-10 20:27:28 GMT
Owner: Daniel J. Berger (Projects of this owner)
Homepage: http://rubyforge.org/projects/win32utils/
Download: http://rubyforge.org/frs/download.php/963/win32-service-0.4.2.zip
License: Ruby's
Dependency:
None
Description:

This is an interface for Win32 services on Windows NT, 2000 and XP Pro.

Synopsis
=========
require "win32/service"
include Win32

s = Service.new("some_machine")

# Create a new service
s.create_service{ |s|
s.service_name = "foo"
s.binary_path_name = "C:\\some_dir\\foo.exe"
s.display_name = "My Foo Service"
}

# Configure a service that already exists
s.configure_service{ |s|
s.display_name = "My Bar Service"
}

s.close

Service.start("foo")
Service.pause("foo")
Service.resume("foo")
Service.stop("foo")

Service.delete("foo")

Service.getdisplayname("Schedule") # "Task Scheduler"
Service.getservicename("ClipBook") # "ClipSrv"

s = Service.status("ClipSrv")

# Enumerate over all services, inspecting each struct
Service.services{ |s|
p s
puts
}

Versions: [0.7.0 (2009-07-01)] [0.6.1 (2009-04-09)] [0.6.0 (2007-11-25)] [0.5.2 (2006-11-25)] [0.5.1 (2006-06-20)] [0.5.0 (2005-11-27)] [0.4.6 (2005-05-24)] [0.4.5 (2005-03-01)] [0.4.4 (2004-08-28)] [0.4.3 (2004-08-14)] [0.4.2 (2004-07-10)] [0.4.1 (2004-04-05)]

Edit this project (for project owner)

back to RAA top