similar to: getdiskfreespace

Displaying 20 results from an estimated 10000 matches similar to: "getdiskfreespace"

2004 Nov 25
0
getdiskfreespace, revisited
Further research indicates that GetDiskFreeSpace() is still ok for getting sector size, regardless of actual disk size. In any case, I''m going to default to 512 in the unlikely event that the call fails, rather than raise an error. Dan
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 Aug 18
0
Playing with NtQueryInformationFile
> -----Original Message----- > From: dlibrik at wolfram.com [mailto:dlibrik at wolfram.com] > Sent: Monday, August 18, 2008 12:26 AM > To: Berger, Daniel > Subject: Re: [Win32utils-devel] Playing with NtQueryInformationFile > > Hello Daniel, > > I apologize for writing to you out of nowhere, but you posted > on the Ruby Win32utils-devel list a while back and I
2004 Nov 17
1
nread and nwrite optimizations
Hi all, So far, so good. Things seem to work just fine and, in the case of nread, I am getting incredible performance. I can''t tell if this is due to some kind of caching, however. Anyway, there a couple of things I want to work out yet. The first is File#nread and Really Big Files. I created a 500 mb text file and sucked it into memory using Ruby''s File#read method just
2008 May 11
3
converting a RSTRING to an OLESTR
Hi, I was going to modify the TaskScheduler#save method to take an optional file name. But, I need to convert a Ruby string to an OLE string. I thought I could use this: http://msdn.microsoft.com/en-us/library/ms692615(VS.85).aspx But, it only appears to accept literal string constants. Any other suggestions? Thanks, Dan
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all, Looking at the IO.readlines source in io.c, it looks to me like they grab 8k chunks, split on the input record separator, and buffer accordingly. Since it looks like ReadFileScatter() does some of that work automatically (in page file sized chunks), I thought I''d give it a try. Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
2005 Jan 25
3
Change Journals
Hi, I''ve released win32-changenotify 0.3.0 today. Take a look. Park and I have discussed a Ruby interface to change journals a little bit: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/creating_modifying_and_deleting_a_change_journal.asp Park, would you like to do this, or did you want me to? I wasn''t sure from your RubyForge post. Also, do
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
2009 Aug 13
2
if_indextoname on Windows?
Hi all, Windows Vista Home Premium VC++ 9 According to MSDN, the if_indextoname() function should be included on Vista: http://msdn.microsoft.com/en-us/library/bb408408%28VS.85%29.aspx However, I can''t get mkmf to see it. I tried all of these: require ''mkmf'' if have_header(''netioapi.h'') # yes have_func(''if_indextoname'',
2006 May 31
0
Looking for docs on some functions andconstants
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > John-Mason P. Shackelford > Sent: Wednesday, May 31, 2006 9:12 AM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Looking for docs on some > functions andconstants > > > Daniel,
2006 May 12
0
win32-process 0.4.0 - SIGINT/SIGBRK not working
Hello, I''ve been trying to use the PureRuby win32 process gem. This is my child.rb file: # child.rb puts "child process #{Process.pid} started at #{Dir.getwd}" trap("INT") { puts "SIGINT signal received." exit(1) } trap("TERM") { puts "TERM signal received." exit(1) } trap("KILL") { puts "KILL signal
2005 Nov 22
1
Win32 Service Timeout command
> -----Original Message----- > From: Jamey Cribbs [mailto:cribbsj at oakwood.org] > Sent: Tuesday, November 22, 2005 2:44 PM > To: Berger, Daniel > Subject: Win32 Service Timeout command > > > Hi, Dan. I have a quick question. Is there a way to set a timeout > variable when starting/creating a win32 service using your package? > When I attempt to start a
2007 Dec 11
0
[ win32utils-Bugs-16211 ] win32-service will not install/build corectly if the system has VC8
Bugs item #16211, was opened at 2007-12-10 15:40 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=16211&group_id=85 Category: win32-service Group: Packaging Status: Closed Resolution: Rejected Priority: 3 Submitted By: Sorin Sbarnea (intersol) Assigned to: Daniel Berger (djberg96) Summary: win32-service will not install/build corectly if the system
2006 Oct 19
1
Fw: Win32 OVERLAPPING IO
Suggestions? ----- Forwarded Message ---- From: James Tucker <jt at ra66i.co.uk> To: djberg96 at yahoo.com Sent: Thursday, October 19, 2006 7:28:30 AM Subject: Win32 OVERLAPPING IO Hi Daniel, My name is James Tucker, I''ve been hacking in Ruby for only a few months now, however am an experienced general programmer in a wide variety of languages. My current focus is on a new
2006 May 31
2
Looking for docs on some functions and constants
Hi all, I''m starting to set things up to move win32-open3 towards a pure Ruby solution. I''ve got a windows-pipe module setup, but now I need to define some of the msvcrt IO functions. However, I can''t find documentation on MSDN or my system for the following: FMODE_READABLE FMODE_WRITABLE FMODE_BINMODE MakeOpenFile() io_alloc() A recursive search on my header files
2005 Feb 01
0
Some updates and questions on Takaaki''s problems
Hi all, I think I''ve narrowed down the problem with win32-file. It appears that EncryptFile() and DecryptFile are only supported on Win2k or later. So, I made some minor modifications to the extconf.rb and source files and released win32-file 0.4.2 tonight. That *should* solve that problem. As for win32-shortcut, I''m not sure why it doesn''t like IID_IPersistFile, or
2004 Dec 10
1
Modification for mkmf
Hi all, I came across this page today: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog /winprog/using_the_windows_headers.asp Based on that, I think we need a patch for mkmf when on Windows that sets _WIN32_WINNT automatically based on platform. This is the basic code I''ve come up with: require "mkmf" require "win32ole" require
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
2004 Dec 29
2
Cluster size not supported
Hi, I'm having a similar problem, I get "The cluster size in this system is not supported." I get this when running wine InstMsiA.exe (using the version from microsoft.com). It comes up in a windows message box. I'm running wine from yesterday's cvs. I tried running Rein's test program from this old email and I get the following output: % wine fds 'c:\'
2006 May 30
1
Syslogging and remote installer (was RE: seg on windows-pr-0.5.1 (was RE: win32-eventlog 0.4.0))
Hi again, Pe?a wrote: > # > i get a segfault on windows-pr if i run mulitple tails by > # threading, one thread for each host i''m tailing. > > argh, this is getting tricky. i''m getting empty records and weird characters too :) > > -------- > record_number : 20983290 > time_generated : Tue May 30 16:15:27 China Standard Time 2006 > time_written :