search for: open_exist

Displaying 20 results from an estimated 45 matches for "open_exist".

2001 Sep 14
5
wine serial support
Hi, I use wine to run a terminal emulator (NetTerm). It connects to a Linux Server (it was meant to run from windows) that runs a commerce software. This Linux commerce software sends the terminal emulator escape codes to interface with a "ticket" printer attached to a serial port. The reason to go thru all this problem is that the printer has a proprietary, closed source driver for
2016 Feb 09
2
Compilation failure using mingw-w64 and gcc-5.3.0
...c -o decode.o decode.c &&\ mv -f $depbase.Tpo $depbase.Po decode.c: In function 'DecoderSession_destroy': decode.c:270:5: error: unknown type name 'HANDLE' HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); ^ decode.c:270:17: warning: implicit declaration of function 'CreateFile_utf8' [-Wimplicit-function-declaration] HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE...
2016 Feb 08
2
Compilation failure using mingw-w64 and gcc-5.3.0
Hello, Upon compiling the flac tree today, after many successful compilations over the last few weeks, a new error is appearing before compilation bails out. This is a cross-compilation using gcc-5.3.0 running on GNU/Linux, with the objects being built for a mingw-w64-x86_64 host. Among other things, the compiler is looking for windows_unicode_filenames.h but it isn't there. Also, I'm
2001 Dec 04
2
Serial Errors
...ke sense out of it, as I can't. Can I solve the problem using setserial or stty. Any help will be greatly appreciated. Thanks, Carlos E. Saldarriaga -------------- next part -------------- trace:file:CreateFileA C:\Program Files\Inetcam230\programs\IConfig.exe GENERIC_READ FILE_SHARE_READ OPEN_EXISTING trace:file:CreateFileA C:\windows\system\avicap32.dll GENERIC_READ FILE_SHARE_READ OPEN_EXISTING trace:file:CreateFileA C:\windows\system\msvcrt20.dll GENERIC_READ FILE_SHARE_READ OPEN_EXISTING trace:comm:COMM_Init COM1 = /dev/ttyS0 trace:comm:COMM_Init LPT1 = /dev/lp0 trace:comm:COMM_Init CO...
2013 Apr 20
1
One tiny Windows Unicode patch
...c..a3706f1 100644 --- a/src/share/grabbag/file.c +++ b/src/share/grabbag/file.c @@ -127,8 +127,8 @@ FLAC__bool grabbag__file_are_same(const char *f1, const char *f2) BY_HANDLE_FILE_INFORMATION info1, info2; HANDLE h1, h2; BOOL ok = 1; - h1 = CreateFile(f1, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); - h2 = CreateFile(f2, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + h1 = CreateFile_utf8(f1, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + h2 = CreateFile_utf8(f2, GENERIC_READ, FILE_SHARE_...
2004 Aug 06
2
Please 30 second to look a my code
...char waveheader[WAVEHEADER]; HANDLE WaveFile; HANDLE SpeexFile; DWORD NrOfBytesRead, NrOfBytesWritten; char nrBytes = 0; int nbBytes = 0; int bit_rate, frame_size, test=0; bool first=true; WaveFile = CreateFile(_T("\\Temp\\tempsound.wav"), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); SpeexFile = CreateFile(_T("\\Temp\\tempsound.spx"), GENERIC_WRITE, 0, NULL,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); speex_bits_init(&bits); //init encoded bits buffer state = speex_encoder_init(&speex_nb_mode); //Init encoder in narrow...
2001 Sep 20
2
win32:DEVICE_Open Unknown VxD A:. Try --winver nt40 or win31 !
...seatools: http://www.seagate.com/support/seatools/ I installed wine under debian unstable (Version: 0.0.20010824-1) and when I run the windows binary under wine, it runs but fails to write the floppy and wine fails with: trace:file:CreateFileA \\.\A: QUERY_ACCESS FILE_SHARE_READ FILE_SHARE_WRITE OPEN_EXISTING fixme:win32:DEVICE_Open Unknown VxD A:. Try --winver nt40 or win31 ! The only replaceable DLL wine loads is advapi32.dll, and I tried to provide one from w2k and win98 ("advapi32" = "native, builtin") but it didn't help. Of course, changing the version of windows (--w...
2014 Sep 26
4
Patch to add buffering to decoding too
...!d->analysis_mode && !d->test_only && d->format != FORMAT_RAW) { +#ifdef _WIN32 + if(strcmp(outfilename, "-") && d->total_samples > 0) { + HANDLE fh = CreateFile_utf8(outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if(fh != INVALID_HANDLE_VALUE) { + if (GetFileType(fh) == FILE_TYPE_DISK) { + LARGE_INTEGER size; + size.QuadPart = d->total_samples * d->channels * ((d->bps+7)/8) + 512; + if(d->foreign_metadata) { + size_t i; + for(i = d-&...
2014 Sep 27
0
Patch to add buffering to decoding too
...{ if(0 != d->fout && d->fout != stdout) { +#ifdef _WIN32 + if(!error_occurred) { + FLAC__off_t written_size = ftello(d->fout); + if(written_size > 0) { + HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if(fh != INVALID_HANDLE_VALUE) { + if(GetFileType(fh) == FILE_TYPE_DISK) { + LARGE_INTEGER size; + size.QuadPart = written_size; + if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* correct the file size */ + SetEndOfFile(fh); +...
2001 Dec 12
0
Solid Edge 7
Hi, I try to install Solid Edge 7.0 (one CAD prg), but wine give alway: "trace:file:CreateFileA D:\Setup.exe GENERIC_READ FILE_SHARE_READ OPEN_EXISTING trace:file:CreateFileA C:\WINDOWS\_delis32.ini GENERIC_READ FILE_SHARE_READ OPEN_EXISTING warn:file:CreateFileA Unable to get full filename from 'C:\WINDOWS\_delis32.ini'(GLE2) err:win:WIN_FindWndPtr window 10022 belongs to other process err:win:WIN_FindWndPtr window 10021 belongs to...
2010 Mar 25
4
CreateFile \\\\.\\x: non-root
Hello, I have a usb data aquisition device interfaced by mass storage protocol. I open it like: hEcgDrive=CreateFile("\\\\.\\g:", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH | FILE_FLAG_OVERLAPPED, NULL); for communication I use DeviceIoControl(hEcgDrive, IOCTL_SCSI_PASS_THROUGH_DIRECT, .... with a 'custom' scsi operation code as wrapper. On Wine-1.1.30. under UHU linux (2.6.23....
2004 Aug 06
0
Please 30 second to look a my code
...gt; HANDLE SpeexFile; > > DWORD NrOfBytesRead, NrOfBytesWritten; > > char nrBytes = 0; > int nbBytes = 0; > int bit_rate, frame_size, test=0; > bool first=true; > > WaveFile = CreateFile(_T("\\Temp\\tempsound.wav"), GENERIC_READ, 0, > NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); > SpeexFile = CreateFile(_T("\\Temp\\tempsound.spx"), GENERIC_WRITE, 0, > NULL,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > > speex_bits_init(&bits); //init encoded bits buffer > state = speex_encoder_init(&speex_nb_mode);...
2004 Nov 11
3
File.nopen alpha
...This allows much greater flexibility when it comes * to Windows files. It also allows you to open directories, which File.open * cannot do on Windows. * * The access mode defaults to READ_DATA | WRITE_DATA * The share mode defaults to SHARE_READ | SHARE_WRITE * The creation mode defaults to OPEN_EXISTING * The flags default to NORMAL * * To open a directory, pass File::BACKUP_SEMANTICS as the ''flags'' argument. So, with this I can do: dir = "C:\\TEST" # directory fh = File.nopen(dir,nil,nil,nil,File::BACKUP_SEMANTICS) p fh # Yup, it''s a File object p fh....
2001 Nov 23
5
Communications problem
...mmunications problem". I think my configuration of wine and the com port is ok, i have spent some time reading manuals and howtos but cant seem to find the flaw. can somone help. Here folows some output i got using -debugmsg +comm,+file trace:file:CreateFileA COM2 GENERIC_READ GENERIC_WRITE OPEN_EXISTING trace:file:CreateFileA opening device 'COM2' trace:file:DOSFS_CreateCommPort COM2 c0000000 40000000 trace:comm:SetCommTimeouts (60,0x405c521c) trace:comm:BuildCommDCBAndTimeoutsA (COM2 96,n,8,1,0x405c51d8,(nil)) trace:comm:EscapeCommFunction handle 96, function=6 trace:comm:EscapeCommFun...
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
...ypeError,"Argument must be true or false"); } rbPath = rb_funcall(self,rb_intern("path"),0,0); dwAttr = GetFileAttributes(StringValuePtr(rbPath)); h = CreateFile( (LPCTSTR)StringValuePtr(rbPath), FILE_ALL_ACCESS, FILE_SHARE_READ, NULL, OPEN_EXISTING, dwAttr, NULL ); if(h == INVALID_HANDLE_VALUE){ printf("Error opening file: %s\n",ErrorDescription(GetLastError())); return Qnil; } ... } I''ve tried various flags for the different arguments, all to no avail. I either get "permissi...
2004 Aug 19
1
Serial Communication
...o use SimoComU, a tool to control frequency converters, on Wine. Since version 2004-07-16 it opens its main window, and most functions seem to work. Anyway, it does not communicate over the serial line. I see the following output: trace:file:CreateFileW L"COM1" GENERIC_READ GENERIC_WRITE OPEN_EXISTING attributes 0x0 trace:file:RtlDosPathNameToNtPathName_U (L"COM1",0x4066eed4,(nil),(nil)) trace:file:RtlGetFullPathName_U (L"COM1" 520 0x4066ec4c (nil)) trace:file:get_dos_device L"COM1" -> "/home/met/.wine/dosdevices/com1" trace:file:CreateFileW returnin...
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
2004 Oct 28
5
Application crashes when File->open is clicked
Hello, I found a bug in Latest wine releases. I found it in the wine-20040914,wine-20040813 rpms for the RedHat Distributions.I had tested it in RedHat-9.0,7.3 systems. The bug is that, when we try to open(file->open) from any windows applications, the application hangs. For eg., even in Notepad, when I click File-> Open, wine shows the following error. --------- wine: Unhandled
2004 May 09
0
Wine crash after update
...quot; (L"SYSTEM.DAT") 0009:trace:heap:RtlFreeHeap (0x40330000,00000002,403307e0): returning TRUE 0009:trace:dosfs:DOSFS_GetFullName returning /win/windows/system.dat = L"C:\\WINDOWS\\SYSTEM.DAT" 0009:trace:file:CreateFileW L"c:\\system.1st" GENERIC_READ FILE_SHARE_READ OPEN_EXISTING attributes 0x0 0009:trace:dosfs:DOSFS_GetFullName L"c:\\system.1st" (last=1) 0009:trace:dosfs:DOSFS_FindUnixName /win,L"system.1st" 0009:trace:heap:RtlAllocateHeap (0x40330000,00000002,00000210): returning 403307e0 0009:trace:dosfs:DOSFS_OpenDir "/win" 0009:trace:h...
2007 Sep 25
2
Using callbacks with ReadFileEx
...extend Windows::Error extend Windows::Synchronize class Error < StandardError; end def self.read_async(file, length=nil, offset=0, &block) handle = CreateFile( file, FILE_READ_DATA, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED | FILE_FLAG_NO_BUFFERING, 0 ) if handle == INVALID_HANDLE_VALUE raise Error, get_last_error end func = Win32::API::Callback.new(''LLP'', ''V''){ block.call...