similar to: Some more win32-changenotify analysis

Displaying 20 results from an estimated 200 matches similar to: "Some more win32-changenotify analysis"

2007 Aug 04
10
Need some help with pure Ruby win32-changenotify
Hi all, I know it''s deprecated, but people seem to still be using win32-changenotify, so I thought I''d see if I could make it pure Ruby. Also, I thought it would be a good opportunity to test passing a custom Win32::Event object. I''m mostly done I think, but I''m having trouble unraveling the FILE_NOTIFY_INFORMATION struct buffer. Please check out the
2005 Jan 20
1
ChangeNotify help wanted
Hi all, I''ve checked in some code to win32-changenotify. Unfortunately, it doesn''t work right. I need some help. I don''t understand what, exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd argument, nor how to read the data back out. There''s also a WCHAR issue that needs to be worked out with regards to the FileName
2006 Dec 21
0
Curious win32-changenotify behavior - numbers instead of names
Hi all, Ruby 1.8.5 win32-ipc 0.4.2 (or 0.5.0 in cvs) win32-changenotify 0.4.2 I noticed something strange tonight while tinkering with win32-changenotify. Here''s my sample script: # cntest.rb require ''win32/changenotify'' include Win32 path = "C:\\test" filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME cn = ChangeNotify.new(path, true, filter)
2005 Jan 06
0
Some thoughts on win32-changenotify
Hi all, As things stand now, you can do something like this with win32-changenotify: require "win32/changenotify" include Win32 filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME | ChangeNotify::LAST_WRITE cn = ChangeNotify.new("c:\\",false,filter){ puts "Something changed" } cn.wait You can pass a block that''s executed when a change occurs, but
2012 May 18
7
Dir.create_junction with FFI
Hi, Try as I might, I just cannot get Dir.create_junction to work with FFI in the ffi branch of the win32-dir project. The problem is the REPARSE_JDATA_BUFFER struct. I''m just not sure how to set those members, specifically, the PathBuffer member. The target looks good, it''s UTF-16LE encoded, but I can''t make it work, despite trying several ways of defining the struct,
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
2008 Jul 08
12
Some more win32-security: SID.create
Hi all, How does this look as a general approach to a SID.create method: # Creates and initializes def self.create(authority, *sub_authorities) if sub_authorities.length > 8 raise ArgumentError, ''maximum of 8 subauthorities allowed'' end authorities = Array.new(8, 0) authorities.replace(sub_authorities) count = authorities.select{ |e| e > 0 }.size
2005 Feb 19
1
Problem with Warcraft 3
Hi, I'm trying to install War3 Roc+TFT+patch 1.17 I succeded the installation. but when I starrtt the game, I got the main menu but image is blinking and mouse cursor is very slow (so I don't try to play) My system is a Fedora Core 3 / 2.6.10 and lastest wine rpm from winehq Here is wine log: > fixme:user:EnumDisplayDevicesA ((nil),0,0x67f9e4,0x00000000), stub! >
2005 May 14
4
Problems with custom service and webrick
Hi all, Windows XP Pro Ruby 1.8.2 I''m having a couple of problems with the following service. The first issue is that the code in service_start doesn''t seem to fire off. The second problem is that any attempt to do ''require "webrick"'' within webrick_daemon.rb causes the service to fail on start. Any ideas? # webrickctl.rb
2004 Jan 22
1
Latest win32-service error
I''m getting an error when I run the test2.rb script. I get this error: C:\eclipse\workspace\win32-service-0.3.0\test>ruby test2.rb install installed C:\eclipse\workspace\win32-service-0.3.0\test>ruby test2.rb start (Win32ServiceError)t'': Overlapped I/O operation is in progress. from test2.rb:42 Any ideas? Also, it looks like the output from ErrorDescription()
2006 May 11
1
world of warcraft doesn't work
Hi everyone, thirst of all please forgive my bad english :) i have installed wine as descripted in winehq and done the patch i have copied a full patched wow version from a windows machine when i try to start 'wine wow -opengl' it works as soon i enter a building then wow crashes with the following output: linux:/Games/wow # wine wow -opengl fixme:advapi:SetSecurityInfo stub
2008 Nov 28
2
AIC function and Step function
I would like to figure out the equations for calculating "AIC" in both "step() function" and "AIC () function". They are different. Then I just type "step" in the R console, and found the "AIC" used in "step() function" is "extractAIC". I went to the R help, and found: "The criterion used is AIC = - 2*log L + k *
2008 Apr 30
8
Playing with NtQueryInformationFile
Hi all, I''m trying to get the allocation size of a file via a file handle (rather than its name). The example below works for FileNameInformation but I can''t get it to work as expected for FileStandardInformation. Here''s some sample code: # query_test.rb require ''windows/handle'' require ''windows/error'' include Windows::Handle
2005 Aug 11
4
win32-process + ruby-breakpoint = strangebehavior
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Bill Atkins > Sent: Thursday, August 11, 2005 8:39 AM > To: win32utils-devel@rubyforge.org > Subject: [Win32utils-devel] win32-process + ruby-breakpoint = > strangebehavior > > > I''m getting really strange
2009 Aug 07
7
Comments for Daniel Berger blog post
Hey Daniel, I''m trying to leave you a comment on this article you wrote: http://djberg96.livejournal.com/168403.html But since you disabled OpenID and anonyous, I''m not fond to register for another account just to reply your comments. Quoting your post: "" Unfortunately, I''ve slammed into the cold hard fact that FFI just isn''t the grand solution
2012 Apr 07
5
FFI and msvcrt
Hi, I''ve been using FFI with a Ruby 1.9.3 built with MSVC++ and it''s been working well. One thing I''ve run into though is this: ffi_lib :msvcrt But that''s not the runtime I want. But I don''t want to hard code the runtime name either. I realize I could parse it out of RbConfig, but I was hoping for something nicer. Is there a way we could create an
2010 Jul 28
2
Ghostcast random freeze.
Greetings again, I am experiencing a lockup when ghost casting about 1 out of 5 client machines locks up. I don't recall if I was having this issue when I was using 3com pxe menus or not. I was wondering if the issue I am seeing could be caused by pxelinux since it basically is loading a Linux kernel then booting a MSDos.imz file. I cannot find any errors from the ghostcast side or the
2008 Dec 01
2
Code formatting with VS 2008?
Hi everyone, I see that Visual Studio 2008 Pro has the ability to auto-format code. Does anyone know if there''s a way to auto-format pre-ansi C code to ANSI C? I couldn''t find anything, but there''s so many options in VS I wasn''t sure. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information.
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
2007 Jan 29
5
memdisk 3.35 + ghost problem
HI: i just trying memdisk that comes with syslinux 3.35. i try to load a dos image, which contains ghost verison 8.3 and ghost version 11. both version of ghost hangs when start-up. memdisk that comes with 3.40 pre is ok. and many earlier versions is ok too. i try some parameter like "safeint","raw". but none work. i use memdisk with pxelinux, below is part of my