driver

Simulating a MIDI device - Windows

Hi, I need some advice on windows programming, MIDI and WDM. I am trying to write a small application that will sit in the sys tray and be advertised to the system as a MIDI In/Out device so that MIDI programs can send to it and it will convert the messages into a different format. I have been reading Cant's WDM book and scouring for...

Driver proxy to avoid repeated code signing on Windows

Drivers on Windows should be signed and submitted to Microsoft for code signing and this is a requirement for 64 bit systems. The problem is that, when you have to update the driver, you have to submit it again, once for every release. Is possible to build some kind of proxy or shim driver so that I have to sign and submit it only once,...

[C#] Need help with raw bitmap data/scan lines (mirror driver raw data)?

I'm coding a live control/remote desktop solution using DFMirage's free mirror driver. There is a C# sample on how to interface and control the mirror driver here (http://www.demoforge.com/sdk/MirrSharp.zip). You would need the mirror driver installed first, of course, here (http://www.demoforge.com/tightvnc/dfmirage-setup-2.0.301.exe). ...

launch exe from inf installation

in my recent project, i have to launch an exe from inf. when my company's device is plugged into win 7 system, PnP service will search device driver from Windows Update Server and install it automatically. on the last step, i must start a app. how can i do that from inf installaton? Please help!!! i tried writing a stub ocx and call shel...

Port 32-Bit Windows driver to 64-Bit Windows

Since our applications run in fullscreen mode, we have developed a keyboard hooking driver to disable user input for keys like ALT+F4, CTRL+ALT+DEL and so forth. The driver is developed in C using the Windows Driver Kit. Compiling for 32-Bit works and it loads the driver on Windos 7 32-Bit and it works as expected. Compiling for 64-Bi...

Writing a keyboard driver that accepts input from code

The ultimate goal of this project is to send low level input (so that it looks like it is coming from the keyboard) to my windows machine. I know C++, Python, and Java. Though I would love to do this in python, C++ will probably be the only option. I have been searching around the internet and have found something called a Keyboard Fil...

device drivers vs driver stack

What is the difference between a driver (device drivers) and a driver stack? I keep hearing people talking about "driver stacks" but I have never really heard of this before... Thanks! ...

Best linux filesystem filter option?

I need a linux filesystem filter thingy with whitch to enforce ACL policy on filesystem calls dynamically (allow/deny read/writes based on stuff computed at runtime). So far I have stumbled onto DazukoFS and Related Work. What I dont like about DazukoFS is that it has to be compiled for each kernel release. Is there some user-mode libr...

Does valgrind track memory initialization through drivers?

valgrind is reporting uninitialized memory errors from code like this: unsigned char buf[100]; struct driver_command cmd; cmd.len = sizeof(buf); cmd.buf = buf; ioctl(my_driver_fd, READ, &cmd); for(i = 0; i < sizeof(buf); i++) { foo(buf[i]); /* <<--- uninit use error from valgrind */ } If I memset() the buf before the driver call,...

How do I write a program which can control a device driver?

I've got a laser profiling system; the included software has a few bugs and missing features that I'd like to correct. I have the source code for this software which compiles but subsequently will not run. The device driver for the hardware is already installed (Windows 7 is the platform, though XP is a likely target as well); I'd like...

Does the Epson Artisan 50 support the ESC/P2 printing protocol?

Our company has been contracted to create a very custom project involving an EPSON Artisan 50. Basically we need to control the location of the printer head and specifically which ink cartridge to use (and where). From my half-day of research, this seems completely possible with an ESC/P2 compatible printer (I've been reading over the ol...

Keyboard interrupts

Hi all, I am studying low-level device driver stuff. I am confused between interrupts and IRQ. A sample driver code that hooks keyboard suggests keyboard interrupt is 0x31 but my book on microprocessor says it is 0x09. On opening 'Device Manager->Keyboards->Resources', it shows IRQ is 1. Can anyone clarify this? Thanks, Sanjeev ...

Failures when signing a 64-bit driver using Windows Logo Kit

Currently I am working on signing a 64-bit driver for a USB tool which is used to scan areas of the skin. My setup is like this: DTM Controller and DTM Studio are running on a Server machine (Windows Server 2003 R2 SP2) DTM Client running on a Client Machine (Windows 7 64-bit) I have managed to run tests on the client, using DTM Stu...

USB EHCI: Help with transaction errors

One of our current milestones on our (open source) project at the moment is to complete USB support, and as such we're working hard on drivers at the moment. Our current development focuses on EHCI on both x86 and ARM (OMAP35xx SoC specifically, EHCI-only in the silicon of the board). We have mostly everything running smoothly in a varie...

specific interface name for an interface in linux

Hi, Is there a possibility that I can hardcode interface name(say eth1) to a specific interface in the linux driver code? This is in a controlled environemnt only, so breaking from default linux way(dynamically assigning name) is ok. ...

Preinstalling WinXP USB drivers to be able to connect device without interaction

Hello, We are a small hardware manufacturer. Most of our products use USB for programming the controllers used. The current situation is that programming the hardware (part of the assembly processor) is rather labour intensive. Each time a new USB device gets plugged in Windows prompts for a driver install. This means that for each ne...

How can I tell which driver Xorg is using for my video card?

I downloaded and compiled the latest intel video drivers as mine seems to have issues, I installed with prefix as /usr/local. Then I added the appropriate Section "Device" Identifier "devname" Driver "intel" EndSection How can I tell if it's using my new compiled driver or something that comes with my distro? What Xorg command dis...

OLE DB Driver Help

I'm using Delphi 2006 and would like some help with fixing a bug in an OLE DB driver implementation. The implementation is built on top of the OLEDB Toolkit from Binh Ly. The problem I'm having is that after executing an Insert command inside the TOleDbCommand.ExecuteCommand method I need to update the row data with a record Id (this i...

How can I compile Programmer Dvorak?

I'm trying to compile the open source project Programmer Dvorak. The problem is that it's a bit old and doesn't build with the current versions of the build tools. You can see the full source code with modifications I made online at my project's Google Code page. Revision 2 is the unmodified source files from the original project. Revis...

usb probe function not called

Hello, I am writing a driver for a gamepad for linux. I have a ps3 controller (wired), a 360 controller (wired) and a Logitech precision (wired). I found the vendor id and product id for each, and I load one at a time. the 360 controller is the only one that calls the probe function. I have the exact same code, just different ids, and o...