Displaying 20 results from an estimated 300 matches similar to: "[Fwd: win32-service-0.6.1 using a Rails Model]"
2007 Nov 18
4
Need help with win32-service, failure actions
Hi all,
I''m trying to get failure action support working. I''ve modified the
Service.configure method to accept the following options:
failure_reset_period
failure_command
failure_reboot_message
failure_actions
failure_delay
I''ve got the failure_command and failure_reboot message working, but the
rest aren''t working properly. I''m mostly focused on
2006 Jun 19
2
win32-service cvs - potential issue with Service.services
Hi all,
I''m preparing win32-service for an 0.5.1 release. I''ve made a couple
minor changes and altered the test suite a bit. It passes on my box
here, except that about half the time I get this error:
1) Error:
test_services(TC_Win32Service):
Win32::ServiceError: OpenService() call failed: The handle is invalid.
test/tc_service.rb:227:in `services''
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
RHSrvAny.c was using a mixture of 4 space indentation, and tabs with a width of
4. This commit rationalises the whitespace to use only 4 space indentation, and
removes trailing whitespace.
---
RHSrvAny/RHSrvAny.c | 537 ++++++++++++++++++++++++++--------------------------
RHSrvAny/RHSrvAny.h | 1 -
RHSrvAny/resource.h | 2 +-
3 files changed, 269 insertions(+), 271 deletions(-)
diff --git
2007 Oct 04
0
Prototyping the Dir class
Hi all,
I''ve been prototyping a Windows-only Dir class for Ruby. Below is what
I''ve got so far. The class methods were easy, except for Dir.glob. The
code in dir.c is just nasty, and I can''t help but think that it could be
heavily refactored. I did come across this link:
http://www.codeproject.com/file/fileglob.asp
But I haven''t investigated it yet. Anyone
2008 Nov 22
2
GetFinalPathNameByHandle for XP and earlier
Hi all,
How''s this look? I based it on
http://msdn.microsoft.com/en-us/library/aa366789(VS.85).aspx.
I''m undecided as to when I should raise an error versus when I should just let
it fall through, but this is how it is for now.
You''ll need the latest windows-pr from CVS, btw.
Regards,
Dan
PS - Where should I put it? In Windows::File directly? In a separate helper
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
RHSrvAny.c was using a mixture of 4 space indentation, and tabs with a width of
4. This commit rationalises the whitespace to use only 4 space indentation, and
removes trailing whitespace.
---
RHSrvAny/RHSrvAny.c | 537 ++++++++++++++++++++++++++--------------------------
RHSrvAny/RHSrvAny.h | 1 -
RHSrvAny/resource.h | 2 +-
3 files changed, 269 insertions(+), 271 deletions(-)
diff --git
2006 Mar 20
5
Need some ACL help for win32-file
Hi folks,
I''ve got most everything done for the pure Ruby version of win32-file.
The last thing left (since I''ll be moving the IO methods to a different
package eventually) is the file security stuff. Here''s what I''ve got so
far for the get_permissions method. However, I''m stuck at GetAce(). If
someone could help me finish up this method, I
2007 Sep 25
2
Using callbacks with ReadFileEx
Hi all,
First, I just realized I''ll need to go back and fix some of the
prototype declarations for windows-pr. The callback parameters will now
need to be set to ''K''. ReadFileEx is one example of this. For purposes
of my question, let''s assume ReadFileEx has been declared like so:
API.new(''ReadFileEx'', ''LPLPK'',
2008 Jun 18
2
[ win32utils-Bugs-20722 ] Windows::Error.get_last_error only returns the first character (PATCH)
Bugs item #20722, was opened at 2008-06-18 15:16
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=20722&group_id=85
Category: windows-pr
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: John Whitley (whitley)
Assigned to: Nobody (None)
Summary: Windows::Error.get_last_error only returns the first character (PATCH)
Initial
2006 Jun 21
4
Yet another data structure + pack/unpack question (win32-service)
Hi all,
If you take a look at the service.rb file in the win32-service
repository (the new one in the toplevel repository path), I''ve got this
bit of code, which succeeds, but I can''t seem to unpack the data
structure properly. Did I pack it wrong to begin with? I should know
this but I''m spacing out.
proc_status =
2015 Jul 28
0
Wine release 1.7.48
The Wine development release 1.7.48 is now available.
What's new in this release (see below for details):
- Fleshed out OpenMP implementation.
- I/O stream support in the MSVCIRT C++ runtime.
- Support for pixel snapping in DirectWrite.
- More support for OpenGL core contexts.
- Various bug fixes.
The source is available from the following locations:
2008 May 18
2
Pure win32-thread library?
Hi all,
Here''s my initial stab at a pure Ruby win32-thread library that doesn''t
work at all. I''m not sure how to pass the start address of the arguments
to the callback. I thought about Marshal, but you can''t marshal a proc.
BTW, the CreateThread method in windows-pr needs to be updated for this
to have any hope of success.
Any ideas?
Thanks,
Dan
#
2007 Oct 27
0
Who wants to take a stab at IO.foreach?
Hi all,
Anyone want to help with a native IO.foreach?
I''m missing some of the critical logic here. This currently just does a
straight BYTE_MAX data read, instead of a line by line data read, and
doesn''t deal with lines split between multiple reads.
I checked strtok into CVS (for windows-pr) if anyone wants to use that
instead of String#split. It''s in
2011 Feb 08
2
WSAStartup failure
Hi,
I added the Windows::WSA module to windows-pr recently (it''s in the latest
git repo). However, I can''t seem to make WSAStartup work. I tried the
following bit of code, only to get "The Windows Sockets version requested is
not supported" on my Vista box.
Is it really not supported on Vista? The docs say Win2k or later. Or is
there another issue?
require
2008 May 06
4
DeviceIoControl + IOCTL_DISK_GET_DRIVE_GEOMETRY problem
Hi all,
Ok, what am I doing wrong here?
require ''windows/device_io''
require ''windows/handle''
require ''windows/error''
include Windows::DeviceIO
include Windows::Handle
include Windows::Error
fh = File.open(''test.txt'') # Assume you have this
handle = get_osfhandle(fh.fileno)
if handle == INVALID_HANDLE_VALUE
puts
2003 Apr 16
1
pop3 coredump
Hi-
I was able to get a coredump out of the new pop3 (from 0.99.9-test4)
by attempting to simulate the execution environment and simply running
the pop3 program.
Running the older pop3 from 0.99.8.1 works fine, repeatedly:
% /usr/local/libexec/dovecot/pop3
quit
+OK Logging out.
However running the new one:
% /usr/local/libexec/dovecot/pop3.new
pop3(user9): Error: Corrupted index file
2009 Aug 02
2
win32-security, 1.9.x, encoding issue?
Hi,
Windows Vista Home Premium
ruby 1.9.2dev (2009-07-18 trunk 24186) [i386-mswin32_90]
I noticed there was an ordinal bug in win32-security and Ruby 1.9.x. I fixed
those easily enough, but now we''re left with this:
1) Error:
test_string_to_sid(TC_Win32_Security_Sid):
ArgumentError: invalid byte sequence in US-ASCII
2007 Oct 08
1
Getting an actual system error
Heya all,
I don''t think I''ve been paying attention. When a Windows API function
fails, I could have been doing this:
raise SystemCallError(GetLastError())
Instead of this:
# Where ''Error'' is nested under the current class.
raise Error, get_last_error
I''m not sure how big of a deal this is in practice, however, or if it''s
even preferred for
2007 Oct 21
0
Taking a stab at a pure Ruby Dir.glob
Hi all,
Here''s what I''ve come up with so far for a pure Ruby Dir.glob for MS
Windows. It almost works. The problem right now is the [] notation,
which I''m not translating properly into a regex.
I haven''t started on the ''**'' notation yet either, but I figure that''s
more of a control flow issue. Feel free to disagree with me and/or
2013 Feb 12
1
[SC] EnumQueryServicesStatus:OpenService FAILED 123
*Hi guys!*
*
*
*I''m trying to perform a service creation using SC and if this service is
already created, using an "unless" we can avoid it. *
*Sound very simple, but for any reason, when instructions are called by
puppet they are not working instead you call directly, same instructions,
using DOS, where works sweet.*
*
*
*Here is part of the code:*
$cmd =