driver

Raw PDO to send IOCTL to upper filter driver (kbfiltr/moufiltr) to enable/disable device

I am quite new to driver development and trying to write a simple filter driver that will enable or disable a keyboard or mouse device. If I can make it work, I want to use it to disable the touchpad on my laptop when a mouse is plugged in. I realize there is probably software out there that does this already, but I am really interested ...

Microsoft PHP SQL Driver 1.1

Hi, Will microsofts SQL for PHP driver version 1.1 work with x64 builds of php 5.3? It's not a general question as much as it sounds, we are currently having trouble with it. I just would like to know if someone can confirm if it works/should work or not. Thanks Jonas ...

Where do you store user context in Linux character drivers?

It's been a while since I worked on a Linux kernel module, and I seem to remember that there was a place to stash context in your open() open implementation that would be available in your other file_operations... For example, if I want to maintain some state associated with everyone that opens my device node, if either the inode structu...

If we could rewrite ALSA from scratch, what would it look like?

Many people agree that ALSA is probably the biggest weakness of the GNU/Linux operating system. ALSA is massive, poorly understood, and badly documented. Some design decisions that it took early on also proved to be fatal. The reason is simple: historically, soundcards didn't behave predictably (in fact, some of them included hardware mi...

How to recover the INF file from an installed XP printer driver?

I am trying to build a utility to export an installed printer driver from a Windows machine. All is well and good on Vista and higher, because the InfPath entry in the driver's registry key points at the INF file. However, on previous versions of Windows, this doesn't exist. Sometimes I can find the INF file for a printer by scanning C:...

Adding and Using Resources in a Windows Driver

Is it possible for a windows driver to have resources? If so how could I add them and more importantly access them? ...

Program new functionality for zoom button on Microsoft Natural Ergonomic Desktop 7000

Hi I just bought a new keyboard and mouse (Microsoft Natural Ergonomic Desktop 7000) and it has a neat little zoom lever in the middle of the keyboard. What I'd like to do is write a little program (in C# or Python, for use on Windows Vista) which makes the zoom button act like a scroll button instead. I have no idea where to start. Wh...

Sending IOCTL from IRQL=DISPATCH_LEVEL (KbFilter/KMDF)

I am using the KbFilter example in the WDK, trying to send an IOCTL in a function that is called by KbFilter_ServiceCallback and therefore is executed at DISPATCH_LEVEL. The function just has to send an IOCTL and return, am not waiting for an output buffer to be filled so it can be asynchronous, fire and forget. I am currently using the...

Detecting current driver settings for NICs on linux

How can I find out what settings a certain NIC was loaded with in linux? I know there's modprobe.conf , but it doesn't give me the config if it was loaded using custom params with modprobe. Also, is it possible to figure out what the default setting for a driver is? ...

CUDA driver installation on a laptop with nVidia NVS140M card

I'm trying to first figure out if my computer contains a CUDA-enabled card. It has an nVidia NVS 140M card, but I can't seem to figure out if it is the 128 MB version or 256 MB version. On the laptop purchase receipt, I found out that I ordered the 128 MB version, but the control panel description of the card said otherwise as shown belo...

Delphi 2007 and Logitech Webcam Driver

A while ago I had this issue with Delphi 2007 unable to run and debug apps while the logitech webcam driver runs. Apparently the Logitech Driver inserts a stub into every process running, thereby messing up the debugger's offset. It's been a year and a bit - is this still an issue? Has Logitech cleaned up their act or do I have to dump...

Automating Win32 Driver Testing

Does anyone know ways of partially or fully automating driver test installation? I am new to driver development and am used to more of a test-driven approach in higher level languages, so moving to the kind of environment where I can't easily test as I go has been a step up for me. I am using Virtual PC for my test environment and curr...

Non-HID Mouse driver on NT

I'm looking to write a custom touchpad driver for my laptop, as its support under Windows is abysmal. I have the protocol figured out and I'm ready to go ahead and implement it, but I'm a bit confused as to how to go about it. It's a multitouch touchpad, so I'd like to support the Windows Touch interfaces in addition to standard mouse ...

How to share register and bit field definitions between a device driver and the FPGA it controls

Are there any good, existing software tools available to assist in generating C header files with appropriate #defines for register offsets as well as bit definitions from VHDL? If any such tools do exist, what restrictions to they place on the VHDL and how are things that should be exported designated? So far, I've found these tools b...

Active Wait in Windows I/O Driver

Continuing the question in: http://stackoverflow.com/questions/1587521/keep-windows-trying-to-read-a-file Thanks to accepted answer in that question I realized that keeping windows waiting for data is a driver responsability. As i'm using Dokan, I am be able to look into the driver code. Dokan complete the IRP request with a STATUS_EN...

Are there recommended tutorials for writing drivers for Gnu/Linux?

I'm getting to the point where, after a year or so, I'm more or less comfortable using Linux (Ubuntu, first 8.04, now 9.04) as my main OS (it helped that the competition was, primarily, Vista). I can't shake the feeling that I should learn more about the workings under the hood. I'm relatively inexperienced in programming (I can write s...

IOUSBDeviceInterface CreateInterfaceIterator does not return all interfaces

Hello, I've ran into a problem when CreateInterfaceIterator does not return all interfaces for the device. When I open "USB Prober" it says there are 9 interfaces, but displays 14 of then counting Interface #1 - Vendor-specific Interface #1 - Vendor-specific (#1) as one interface. The problem is that CreateInterfaceIte...

"Are you sure you want to print X pages?" dialog before actually printing... (for any app)

In Internet Cafes where people are allowed to print, sometimes they print more pages than they intended to. I'm looking for a way to display an "Are you sure you want to print X pages?" dialog after they pressed print (in any application), but before the job is sent to the queue. I'm looking for pointers on how to implement such a hook...

How to record(reverse-engineer) PCI transactions on Linux

I want to record all read/write PCI transactions of a device driver. Is there a way to do it by a linux command or on software? ...

Looking for virtual USB HID driver

We designed a special communication tool for use on a wheelchair to control lights etc. We use Z-wave. We have app for control of these devices via PC. Unfortunately, the app expects a USB stick. Our design does not allow a USB connected stick. Instead we use serial interface module that links to the pc via Bluetooth and a virtual compo...