wine Problem (Serielle Schnittstelle)

Frank Wohlfahrt frank-info at gmx.de
Fri Feb 25 22:06:15 CET 2005


> Am Freitag, 21. Januar 2005 22:23 schrieb Jan-Benedict Glaw:
> > > Naechstes Problem: Serielle Schnittstelle. "Ungültiger
> > > Initialisierungs-String. COM1:9600,n,8,1" (COM2 das gleiche). Laut
> > > Google koennte ein Grund sein, dass die Schnittstelle belegt ist:
> >
> > Hat wine die Möglichkeit, Debug-Output anzufordern? Das könnte auch
> > helfen.

Trace-Auszug:

0029:Call 
kernel32.DeviceIoControl(00000078,001b007c,4070f140,00000001,00000000,00000000,4070f130,00000000) 
ret=417e0ce7
0029:Ret  kernel32.DeviceIoControl() retval=00000000 ret=417e0ce7
0029:Call kernel32.GetLastError() ret=417e0cf2
0029:Ret  kernel32.GetLastError() retval=00000057 ret=417e0cf2

Ich habe noch nicht aufgegeben. Das Problem ist vermutlich der DeviceIoControl 
Aufruf um die seriellen Schnittstelle einzustellen. Der Rueckgabewert ist 57, 
was Hex interpretiert ERROR_INVALID_PARAMETER ergibt. 

Unterm MSDN habe ich zu DeviceIoControl  u.a. folgendes gefunden:

Windows Me/98/95:  DeviceIoControl can only accept a handle to a virtual 
device driver. For example, to open a handle to the system VxD with 
CreateFile, specify \\.\vwin32. 
You should specify the FILE_SHARE_READ and FILE_SHARE_WRITE access flags when 
calling CreateFile to open a handle to a device driver. However, when you 
open a communications resource, such as a serial port, you must specify 
exclusive access. Use the other CreateFile parameters as follows when opening 
a device handle:
    * he fdwCreate parameter must specify OPEN_EXISTING.
    * The hTemplateFile parameter must be NULL.
    * The fdwAttrsAndFlags parameter can specify FILE_FLAG_OVERLAPPED to 
indicate that the returned handle can be used in overlapped (asynchronous) 
I/O operations.

Kann es sein, dass wine ein Problem hat die Schnittstelle als VxD 
anzusprechen ?

Frank



More information about the Linux mailing list