Displaying 20 results from an estimated 48 matches for "generic_read".
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
...t
-D_FORTIFY_SOURCE=2 -msse2 -MT decode.o -MD -MP -MF $depbase.Tpo -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_...
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
...e attachment).
Can anyone make 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/...
2013 Apr 20
1
One tiny Windows Unicode patch
...src/share/grabbag/file.c
index dd2880c..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...
2004 Aug 06
2
Please 30 second to look a my code
...char OutBuffer[200];
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); //I...
2008 Feb 13
1
Flash Movie Player Control in VB
...lieve that the ActiveX controller
does load properly.) Unfortunately, I don't have access to the source, nor
do I have any VB experience.
Looking at the file channel of debug output, I notice:
trace:file:CreateFileW L"C|/Program
Files/TimeMAPS/Graphics/Flash/070100_NeedsWants.swf/" GENERIC_READ
FILE_SHARE_READ creation 3 attributes 0x80
trace:file:RtlDosPathNameToNtPathName_U (L"C|/Program
Files/TimeMAPS/Graphics/Flash/070100_NeedsWants.swf/",0x33d8b8,(nil),(nil))
trace:file:RtlGetFullPathName_U (L"C|/Program
Files/TimeMAPS/Graphics/Flash/070100_NeedsWants.swf/" 520 0...
2006 Mar 21
0
wine and Mankind (the one from www.mankind.net) - possible networking or file creation problem
...hat's ok. The server that distributes the updates is np.mankind. But I
don't capture any other packets. I would expect an attempt to connect to
it or any other of Mankind's servers.
This may also be related to some other thing I have noticed:
trace:file:CreateFileW L"mk.cfg" GENERIC_READ FILE_SHARE_READ
FILE_SHARE_WRITE creation 3 attributes 0x80
trace:file:RtlDosPathNameToNtPathName_U
(L"mk.cfg",0x7f9de618,(nil),(nil))
trace:file:RtlGetFullPathName_U (L"mk.cfg" 520 0x7f9de38c (nil))
trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\Programme\\Mankind\
\Man...
2014 Sep 26
4
Patch to add buffering to decoding too
...Session *d)
/* write the WAVE/AIFF headers if necessary */
if(!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;
+...
2014 Sep 27
0
Patch to add buffering to decoding too
...ecoderSession_destroy(DecoderSession *d, FLAC__bool error_occurred)
{
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_CUR...
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_FindWnd...
2003 Sep 24
0
CreateFile for EXE images vs other files
This question isn't directly Samba related, but Samba has helped me figure out part of the problem. When I CreateFile on an existing file like so:
CreateFile(FileName, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
Samba shows that I have the file opened with this type of lock
DENY_NONE 0x20089 RDONLY
When the file is locked in this manner, I am unable to rename the file.
However, Windows launches executables ove...
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'...
2004 Aug 06
0
Please 30 second to look a my code
...> 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...
2001 Nov 23
5
Communications problem
...it has an "Unknown
Communications 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...
2009 Jul 27
5
Problems with Pass4Sure's Network+ Demo
All:
My employer has required me to pass a computer security certification
exam. The folks at Pass4Sure have what I consider the best program.
However, it does not want to play nice under Wine. I installed the Demo
version of the Network+ test program. It is a native Windows Java
application. It wanted to install GDIPLUS and msxml6. I used
Winetricks to install them and then tried to run
2004 Aug 19
1
Serial Communication
I try to 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:...
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
2002 Nov 17
2
Problem running Anstoss2 under Wine
Adrian Bunk wrote:
>I'm trying to run Anstoss2 (a five years old German soccer simulation -
>I'm only interested in the strategic part of the game) under Wine. I
>tried the Debian package of the 20021031 Release and a self-compiled
>package of a 20021116 CVS snapshot. The following messages occur during
>the start of the game:
>
><-- snip -->
>
>$ wine