Windows driver in wine - windows

I have a printer in my job, Brother HL-2240D, and i need somre driver for linux to get the status information for that (toner level, empty paper, ...).
Actualy I use a driver for linux and I print ok, but this driver dont't get me the status for the printer. Windows driver is the only driver who get the status.
I have found a few days, but it doesn't exist, so I have an idea, install the windows driver in Wine. Can anybody help me to install this drivers in wine?
Thanks.

There are is some weird printer related stuff to wine but I doubt you'll be able to get status working like you hoped. My advice is to either dual boot with windows (or have a separate machine running windows) or even run a virtual machine on your linux pc and have windows running in that. You could then use the virtual version of windows to connect to the printer and receive the printer status stuff with the windows driver and tools.

Related

How to use FTK Imager 4.7.1 under Windows PE on an USB-Stick

I am an ongoing computer forensic student and I am working on taking an image on a bitlocker encrypted Windows 10 device.
Therefore I am creating a Version of Windows PE and mount it with FTK Imager 4.7.1.
The problem starts when I am trying to run the FTK Imager on the target machine. The programm will not start and it also does not throw any error. In the program files of the Imager is a program named adencrypt_gui.exe, which is working fine in the same setup.
Is it possible that I need to run the program with administrative rights? I tried that but found out that there is nothing like users or similar things in Windows PE.
Any help is appreciated and please let me know if you need more specs.
Thanks

IPP Driver is missing in Windows 10 (needed to connect to CUPS)

I have a HP Color Laserjet Pro 454dn printer connected to CUPS, but some of my Windows 10 computers can't print Duplex to it. Android and IOS devices have no problem printing duplex. I did notice that the driver on the working Windows 10 computer is a "Microsoft IPP driver". I cannot find this driver on the other computers. Does anyone know how to install this? I have turned the "Internet Printing Client" on, but this does not help. Also, I have tried the universal and device specific drivers from HP both with post script and PCL, some print only greyscale and others don't print duplex.
Android and iOS can print without drivers. I have looked into driverless printing for Windows, have made no progress. This would be my favourite solution.
Thank you all very much.
The IPP Driver is built into Windows 10. You might want to look at adding SAMBA to your CUPS implementation. Especially for older Windows and Android clients wanting to see your printer.
Click the 'The Printer that I want isn't listed'.
Then the radio button of "Select a shared printer by name".
Then put the printer network name in the window using this format:
http://hostname-or-ip-of-your-pi:631/printers/Printer_Name
Windows will now find the printer and ask for a print driver for it.
This link tells you all you ever wanted to know about CUPS printing but assumes your using Ubuntu to make a network printer: http://www.auxnet.org/index.php/the-news/214-installing-an-ipp-printer-in-windows-10

Pre-install driver on Windows

I am trying to create an installer (using Inno Setup) that will pre-install a USB driver for an LCD HMI. I have the drivers from the manufacturer (they appear to be signed). However, no matter what I do, Windows will first detect the driver as a "Gadget Serial v2.4" device, then immediately go to "Windows Update" and downloads a "PNX Bulk Device" driver.
This driver does not work with the HMI. I have to then manually open up Device Manager, find the "PNX Bulk Device", go to "Update Driver Software"..."Browse My Computer", "Have Disk", etc.
This is a very arduous process and may be overwhelming for an inexperienced user.
Is there anyway to automate the process, such that if the package is installed before the USB device is plugged in, then the driver will be in place, and Windows will use the correct driver rather than the Generic ones it is finding?
Note: I have tried the DPInst utility, the SetupCopyOEMInf function and pnputil.exe. All methods "appear" to work (ie: no error messages), but Windows still grabs the generic driver first, no matter what.
I realize my understanding of drivers may be flawed. I'm trying this on a Windows 7 x64 architecture, but I would like it to work universally.

how to install standard modem in windows xp

I am new to windows programming but have programming experience on linux platform.
Anybody can please clarify the following.
I need to install a modem in windows xp through c program or batch script. Modem i have is a serial modem.Whenever i connect the modem that is coming as a serial port.I have to install that modem using windows standard medem driver(Modem.sys).That i have done through control panel item "phone and modem" . But i want to do that installation using c program or batch script. Can anybody please give some suggestions? Or is that possible to create dial up connection without installation to connect to gprs network ?
Perhaps the MSDN article How To Programmatically Install Modem Drivers which includes rhis call to runDll32.exe can help
rundll32.exe shell32.dll,Control_RunDLL modem.cpl,Modems, noui inf=c:\MyModem.INF sect=MyModem
The article is very old and references Windows NT version 4.0 but then again I'm not convinced you not a time traveler asking this question from the late 90's
Look at this page : http://support2.microsoft.com/default.aspx?scid=kb;EN-US;Q304294
I encountered the same problem as you did, and I've succeeded with this solution on win7 64bit system. You should download source files from this page and compile it with WDK (I use WDK7.1) . Attention, the original source is compiled by DDK, and it will failed linking under WDK. So you should add one line to file 'SOURCES':
USE_MSVCRT = 1
When build passes, you'll get an executable 'mdminst.exe'. Then you could install any modem you want by CLI:
C:\> mdminst <modem-inf-file> <COM port> <HardwareID>
Ex. to install an standard 33600bps modem on COM1, the command is:
mdminst c:\windows\inf\mdmgen.inf COM1 mdmgen336

Upgrading driver from XP to W7

I've got a driver for a custom PCI card, which builds and runs fine on XP. I'm trying to use this custom hardware on W7, and am trying to build and run my driver.
I've got the latest DDK from Microsoft, and build my driver for XP using Windows XP "x86 Free Build Environment". Everything installs & works fine. (Build using a DDK "build" command)
If I use the Windows 7 "x86 Free Build Environment" build environment, everything builds fine. I run it through the PREfast and staticdv code checkers, no errors from either. ( I get a couple of warnings about "The dispatch function 'FooFnc' does not have any __drv_dispatchType annotations" - are these likely to be the issue? )
When I install, the install starts OK (standard error about drivers not being signed), but gets to a certain point and then hangs, then fails with a timeout error. The device then shows up in device manager as installed. At this point the PC won't shutdown or boot, but hangs indefinitely. I'm forced to boot into Safe Mode and uninstall the driver from there.
So my question(s) are:
If there has been a change in the driver model between XP and W7, what's the best way to find it? I can't see anything on MSDN.
How would I go about debugging the driver? The box doesn't start, so it's not like I can run up WinDBG.
Any specific W7 driver gotchas that are hidden away?
I've tried to keep this as generic as possible, but if more detail would be helpful I'll provide more
AFAIK, the biggest changes have been made in video and network drivers. Other drivers retain backward compatibility and can be run on W7 even with no recompiling.
Run your driver under driver verifier and turn on generating crash dumps with a keyboard (very helpful in case of system hangs, you can manually generate crashdump, analyze it and find what was wrong).
Hope this helps!

Resources