[ANN] win32-service 0.1.0

Hi all,

I am very pleased to announce the first release of
win32-service. This is an interface for reporting,
and creating, Win32 services on Windows NT, 2000 and
XP Pro.

Synopsis

···

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

s = Service.new(
:service_name => “foo”,
:exe_name => “C:\some_dir\foo.exe”,
:display_name => “My Foo Service”
)

s.create_service

Service.start(“foo”)
Service.pause(“foo”)
Service.resume(“foo”)
Service.stop(“foo”)

Service.delete(“foo”)

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

Enumerate over all services, inspecting each struct

Service.services{ |s|
p s
puts
}

This is the first package I’ve released as part of the
win32utils project, located on RubyForge at
http://rubyforge.org/projects/win32utils/.

Feedback welcome. Enjoy!

Regards,

Dan


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Hi,

···

----- Original Message -----
From: “Daniel Berger” djberg96@yahoo.com
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Saturday, October 11, 2003 9:09 AM
Subject: [ANN] win32-service 0.1.0

Hi all,

I am very pleased to announce the first release of
win32-service. This is an interface for reporting,
and creating, Win32 services on Windows NT, 2000 and
XP Pro.

This is the first package I’ve released as part of the
win32utils project, located on RubyForge at
http://rubyforge.org/projects/win32utils/.

Feedback welcome. Enjoy!

It is a useful package!

I think it is more useful if it is able to set or update start type of a
service.
And the exception handling like already started or aleady stopped is
required.

Thank you for your effort.

Regards,

Park Heesob

Win2K
Latest stable snapshot of 1.8
FXRuby-1.0.26-ruby180.exe

I am getting:

…: [BUG] Segmentation fault
ruby 1.8.0 (2003-10-11) [i386-mswin32]

when trying to set the cell icon after the table is displayed.
To reproduce using “C:\ruby\samples\FXRuby\table.rbw”, move line 107

@table.getItem(6, 6).icon = penguinicon

from initialize() to create() after the show() (converting the
penguinicon into the instance variable of course) or try to set it
in onCmdResizeTable(). It does not crash if icon is first set in
initialize() and then in create(). Am I doing something wrong?

Thanks,
Yura.