similar to: FindFirstFileA win32 API function return value

Displaying 20 results from an estimated 6000 matches similar to: "FindFirstFileA win32 API function return value"

2005 Nov 26
1
Another patch of win32-service for nice startup.
Hi, I believe this patch would be a perfect solution for a lengthy initialization application. Added hStartEvent, service_init, checkpoint increments. ============================================================ --- temp/service.c 2005-11-27 00:03:30.000000000 +0900 +++ service.c 2005-11-27 00:01:58.000000000 +0900 @@ -14,6 +14,7 @@ static VALUE cDaemonError; static VALUE rbServiceStruct,
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
2001 Feb 09
1
"Unable to open file..."
I already have Wine working under Linux, primarily to run Quicken. I'm trying to run TaxAct 2000, without success. Starting TaxAct, I get the TaxAct splash screen followed by an error box stating "Unable to open 2000 Tax Return File.ta0". The filename contains whitespace as shown. The debug message log shows an attempt to open the file: Call kernel32.250:
2002 Mar 07
2
warn:dosfs:DOSFS_FindUnixName - path not found
Running my program with --debugmsg warn+all,+relay I find that the following happens just before the program pops up a dialog box saying 'String resource not found': ---------------------- begin ---------------------- 08078330:Call kernel32.FindFirstFileA(41c56870 "windose/C4DNET_R73 PC/C4D_NET_Client.exe\\clientprefs\\c4d_language.prf",41c56730) ret=00862b69
2017 Jan 06
1
[PATCH 5/5] win_utf8_io: Avoid forbidden functions when building for WinRT/UWP
Hugo Beauzée-Luyssen <hugo at beauzee.fr> wrote: > --- > src/share/win_utf8_io/win_utf8_io.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/src/share/win_utf8_io/win_utf8_io.c > b/src/share/win_utf8_io/win_utf8_io.c > index c61d27f3..1437b41e 100644 > --- a/src/share/win_utf8_io/win_utf8_io.c > +++ b/src/share/win_utf8_io/win_utf8_io.c >
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
Hi all, I''m going over win32-file this weekend. I''m creating instance methods for setting (or unsetting) the various file attributes. So, you can do something like: f = File.open("foo.txt") f.archive = true f.hidden = true f.close This works for the basic attributes, but it requires extra work for others. Specifically, I am having trouble trying to set the
2009 Jul 17
1
[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
--- include/llvm/System/Program.h | 14 ++++++++++---- lib/System/Unix/Program.inc | 17 +++++++++-------- lib/System/Win32/Program.inc | 16 +++++++++------- 3 files changed, 28 insertions(+), 19 deletions(-) diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h index 14f9e9e..05c73ac 100644 --- a/include/llvm/System/Program.h +++ b/include/llvm/System/Program.h @@
2004 Aug 11
5
problem with delphi bde app
Hi, I'm trying to run some old delphi application, which uses BDE to connect to an access mdb file. The application displays an error, that it couldn't open the database. I can run BDEADMIN and I see that database aliases are configured propoerly. I did some winedebugg'ing and noticed following mesassages .... ... warn:gdi:GDI_GetObjPtr Invalid handle (nil) warn:gdi:GDI_GetObjPtr
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
2012 Jun 16
2
Adding title to colorkey
A recent paper on visualisation (in Neuron, a leading neuroscience journal) surveyed how well previous articles in this journal labelled their graphs (e.g. axis labelling and describing their error bars). Of particular interest is that (only) 40% of plots labelled what their colorkey was showing (variable and units). The paper is at http://dx.doi.org/10.1016/j.neuron.2012.05.001 R is not yet
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 11
1
FW: ibuf_empty delayed efd
> -----Original Message----- Damien Miller, 6/10/08 said: > > On Tue, 10 Jun 2008, Scott Neugroschl wrote: > > > I'm seeing something unusual in 5.0p1. Let me start by saying that > I'm > > on kind of an oddball > > system (HP NonStop). > > > > What I'm seeing is that at the end of an scp session, the server gets > > stuck in a
2014 Sep 26
4
Patch to add buffering to decoding too
Removed buffer size increase. Only tells the filesize to Windows now. On 26.9.2014 14:08, Erik de Castro Lopo wrote: > Martijn van Beurden wrote: > >> Can you please wrap the setvbuf in _WIN32 IFDEFs too? Currently >> memory usage of FLAC decoding is about 1MB, so this patch is >> increasing memory usage tenfold, also for platforms that do not >> need this. It is a
2008 Dec 18
5
EverQuest - worked once, but no more
I had a previous install on another computer with the following, and EQ worked perfectly there, with the following configuration: Laptop: HP dv6355 Graphics: NVIDIA GeForce Go 6150 (UMA) Processor: AMD Turion 64 X2 (1.8 GHz) Memory: 2 GB OS: Ubuntu 8.04 Wine: 1.1.4 Unfortunately, the computer was formatted and given to someone else, so I can no longer compare the configurations or run any tests
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
2008 Feb 27
0
Making redirecting output with win32-process a bit easier
Hi all, Inspired by Sander Pool''s help request, I came up with this change to win32-process which makes redirecting stdin/stdout/stderr less of a hassle: C:\Documents and Settings\djberge\workspace\win32-process\lib\win32>diff -u process.orig process.rb --- process.orig Tue Feb 26 22:23:56 2008 +++ process.rb Tue Feb 26 22:23:20 2008 @@ -270,6 +270,10 @@ # library. Note
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
2004 Nov 21
3
win32-file, overlapped added
Hi all, I''ve got overlapped and offset support in both nread and nwrite. The only thing left before I want to release this (as 0.4.0) is to get NO_BUFFERING to work. Unfortunately, I can''t get it to work. Park, I looked at that site you sent (and borrowed some code from it), but I don''t see anything special happening for NO_BUFFERING. I thought it required
2011 Sep 03
1
Patch to build hivex lib on Windows
Hi I'm just posting this here in case someone is interested in building hivex on Windows (mingw32). The attached patch allows building the lib but not the tools (hivexsh etc..) as there are some more problems to solve. In short terms, this patch replaces file i/o functions and mmap(), munmap() with their win32api pendants. cu -- Unix _IS_ user friendly - it's just selective about
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