Displaying 20 results from an estimated 5000 matches similar to: "Help with win32/api, windows-api"
2007 Sep 28
3
[ win32utils-Bugs-14298 ] windows-api 0.2.0/windows-pr 0.7.1 causes segfault with require of win32/file
Bugs item #14298, was opened at 2007-09-28 10:23
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=14298&group_id=85
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Lars Olsson (lasso)
Assigned to: Nobody (None)
Summary: windows-api 0.2.0/windows-pr 0.7.1 causes segfault with require of win32/file
Initial Comment:
2007 May 04
1
Trying to get a good example for win32-mutex
Hi all,
I''ve been going through the various IPC modules for Win32Utils and
converting them to pure Ruby. I''m almost done with win32-mutex, but I
can''t get the example to work. I keep getting this error:
C:/Documents and
Settings/djberge/workspace/win32-mutex/examples/mutex_test.rb:41:
undefined method `+'' for nil:NilClass
(NoMethodError)
from
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 Sep 25
2
Bug in win32-api with void prototypes?
Hi all,
It seems that a void prototype requires an explicit argument in our
version of win32/api:
C:\>irb
irb(main):001:0> require ''win32/api''
=> true
irb(main):002:0> include Win32
=> Object
irb(main):003:0> require ''Win32API''
=> true
# Our version
irb(main):004:0> GetLastErrorA = API.new(''GetLastError'',
2008 May 11
4
Latest rb_win32_select patch
Hi Park,
I tried your latest patch and ran the sample code:
readPipe, writePipe = IO.pipe
t = Thread.new{
sleep 5
while true
sleep 0.1
puts "got #{readPipe.readline.length} bytes"
end
}
i = 1
while true
i += 1
sleep 1
puts "hello from main"
if i > 3
writePipe.puts "a"*2048
end
end
t.join
At the console I typed the
2008 Apr 25
4
win32-mmap test failures
Hi all,
This is odd. It looks to me like we have all 4 variations of memcpy set
in Windows::MSVCRT::Buffer but somehow this one creeps up. I actually
noticed it in a few cases with that earlier mmap sub/replace example,
but I wasn''t sure what was happening.
Note that windows-api 0.2.3 and windows-pr-0.8.3 are the latest versions
in CVS, but this happens with windows-api-0.2.2 and
2008 Jun 10
7
Unraveling a FAR*
Hi all,
Just looking over fole_s_connect() in win32ole.c and I noticed this bit:
hr = CLSIDFromProgID(pBuf, &clsid);
...
hr = GetActiveObject(&clsid, 0, &pUnknown);
...
hr = pUnknown->lpVtbl->QueryInterface(
pUnknown,
&IID_IDispatch,
(void **)&pDispatch
);
Using win32-api, that would be something like:
IID_IUnknown =
2006 Mar 23
0
Win32API patch?
Hi all,
Passing a Fixnum when you should have passed a String (pointer) causes a
segfault in Win32API.
I''ve already reported this on RubyForge (Bug #3904):
require ''Win32API''
RegFormat = Win32API.new(''user32'', ''RegisterClipboardFormat'', ''P'', ''I'')
RegFormat.call(1) # Boom!
I''ve traced the
2007 Feb 28
3
[ win32utils-Bugs-8942 ] several typo in windows-pr.
Bugs item #8942, was opened at 2007-02-28 23:59
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85
Category: windows-pr
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Katsuyuki MIYAMUKO (miyamuko)
Assigned to: Nobody (None)
Summary: several typo in windows-pr.
Initial Comment:
I found typo in windows-pr.
Attached
2008 May 26
1
Interest in win32-installer
I was wondering if people would be interested in wrapping msi.dll
functionality,
I''ve started writing a small library to enable enumeration of products
installed via Windows Installer using win32api (I know I can also
query via win32ole to win32_product but I don''t seem to get all the
properties that are in msi.h).
It''s a little messy, and I''ve not got far as
2011 Aug 22
2
Pure Ruby TCP Daemon
Hi all,
I created a "pure" branch on github that uses the code Heesob posted a while
back:
http://rubyforge.org/pipermail/win32utils-devel/2008-November/001274.html
However, I couldn''t make it work on my Vista laptop.
c:\Users\djberge\Repositories\win32-service\examples>ruby demo_daemon_ctl.rb
start
VERSION: 0.8.0
2006 Aug 21
1
[ win32utils-Bugs-5479 ] Incorrect SetLastError declarations
Bugs item #5479, was opened at 2006-08-21 07:43
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=5479&group_id=85
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Incorrect SetLastError declarations
Initial Comment:
windows-pr-0.5.3
lib\windows\error.rb
2007 Aug 10
3
[ win32utils-Bugs-12979 ] Error while trying to update my gem collection
Bugs item #12979, was opened at 2007-08-10 15:29
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=12979&group_id=85
Category: windows-pr
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Error while trying to update my gem collection
Initial Comment:
C:\ruby>gem update
Updating
2010 Jan 23
10
Trouble creating mingw binary
Hi,
I''m trying to build a binary for win32-open with a mingw install but
I''m having trouble. I''ve installed MinGW 5.1.6 and I''ve got gcc, etc.
But, when I run "ruby extconf.rb; make" I get the following error:
C:\Documents and Settings\djberge\Repositories\win32-open3\ext>ruby extconf.rb
checking for ruby/io.h... no
checking for rb_pid_t in
2006 Oct 13
2
win32-mmap - trying to marshal self
Hi all,
I realized the current implmentation has a problem - you can only get the last value set? I realized, after looking at the old C code, that it actually stores values in a hash and marshals the hash, not the values themselves.
That seemed clunky to me, though. I thought it would be more interesting if we just marshalled the entire mmap object and passed that back and forth.
2006 Aug 08
2
win32 eventlog dup
That''s weird. Line 296 is just a call to FormatMessage().
Folks on the mailing list - could this be a wide character issue? Buffer
too small maybe?
Regards,
Dan
Pe?a wrote:
> forgot:
>
> it segfaults on the win2k3 server (domain controller).
>
> it has _not_ segfault on my winxp pro though.
>
>
>
> # -----Original Message-----
> # From: Pe?a, Botp
2005 Feb 07
7
win32-driveinfo in CVS
Hi all,
I committed win32-driveinfo 0.1.0 to CVS.
What is it?
===========
A class for getting information of drives
Synopsis
========
include Win32::DriveInfo
(sectorsPerCluster,
bytesPerSector,
numberOfFreeClusters,
totalNumberOfClusters,
freeBytesAvailableToCaller,
totalNumberOfBytes,
totalNumberOfFreeBytes) = getDriveSpace(''c'').to_a
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 =
2006 May 26
13
win32-dir, unicode
Hi,
I''ve got a preliminary version of the pure Ruby version of win32-dir in
CVS. However, I was hoping to work out the Unicode issue. Run this:
from = "C:\\test"
to = "?????"
Dir.mkdir(from) unless File.exists?(from)
Dir.create_junction(to, from)
It works, but my explorer (and dos) window shows the name garbled. I
don''t think it''s a font
2008 Jan 26
0
JRuby version of win32-api - initial try
Hi all,
I''ve got a preliminary JRuby version of win32-api checked into CVS at
the moment under win32-api/lib/win32/api.rb. I''ve also pasted it below.
It doesn''t quite work right in that I can''t get it to modify the
arguments in place in the API#call method. Take a look at the sample
code at the very bottom to see what I mean.
I haven''t even tried