Hi all, I have a .sys driver for parallel port communication. But it seems wine didn't support loading the driver. My windows program has to be configured as XP version. And directly accessing to parallel port is not allowed on the XP host, therefore _outp and _inp are useless. Is there any solution to this problem? Best Regards, Milo Xu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.winehq.org/pipermail/wine-users/attachments/20070525/f3221ce2/attachment.html
Zhongli Xu wrote:> Hi all, > > I have a .sys driver for parallel port communication. > But it seems wine didn't support loading the driver. > My windows program has to be configured as XP version. > And directly accessing to parallel port is not allowed on the XP host, > therefore _outp and _inp are useless. Is there any solution to this problem?inp, outp are available when (and only when) you run as root. this is linux permission, not related to wine.> > Best Regards, > Milo Xu-- This space was intended to be left blank.
On Fr, 2007-05-25 at 14:48 +0800, Zhongli Xu wrote:> I have a .sys driver for parallel port communication. > But it seems wine didn't support loading the driver.As the first step, you should try to avoid the special Driver and use the Parallelport-Driver from Windows. The default Location in the ObjectManager for the first Parallel Port is: "\Device\Parallel0". (HKLM\Hardware\Devicemap\Parallel Ports\") But Parallel Ports are unsupported in wine yet.... (For serial Ports, the Driver is: "dlls\ntdll\serial.c")> And directly accessing to parallel port is not allowed on the XP > host, > therefore _outp and _inp are useless.You need to use the Windows-API for the access: CreateFile / ReadFile / WriteFile and DeviceIOControl. I do not know, if this need Admin-Rights... -- By by ... Detlef