device-driver

Extending Functionality of Magic Mouse: Do I Need a kext?

I recently purchased a Magic Mouse. It is fantastic and full of potential. Unfortunately, it is seriously hindered by the software support. I want to fix that. I have done quite a lot of research and these are my findings regarding the event chain thus far: The Magic Mouse sends full multitouch events to the system. Multitouch events a...

How to write software for my touchpad?

I have some ideas for improvements on my touchpad, ranging from the run of the mill scroll horizontally at the bottom, tapzones for right click, to more complicated ones. But I have no idea where to get started? I'm working on Windows 7 Home Premium, its an Asus laptop, and I have none of these options natively available to me. Regardles...

Linux Kernel: copy_from_user - struct with pointers

Hello, I've implemented some kind of character device and I need help with copy_ from_user function. I've a structure: struct my_struct{ int a; int *b; }; I initialize it in user space and pass pointer to my_struct to my char device using 'write' function. In Kernel's Space character device 'write' function I cast it from a *char...

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? ...

Is there software or code to alter USB power output

I had a look at this and this but no one sounded particularly sure of their ideas and I'm kind of after a different thing anyway. I want to hook my usb power cables (red and black) up to my phone so I don't have to use a battery (the battery is dead anyway and this is just an experiment). The problem is that USB standards ensure that a m...

Reverse Engineering an Apple Kext - Reconstructing the Class

Greetings! I am currently attempting to extend the functionality of the Magic Mouse. To do this, I am hoping to write a kext that intercepts events from the multitouch driver, AppleMultitouchDriver.kext, interprets them, and either dispatches new events or forwards the actual event. This approach is similar to the approach used by Doubl...

knowing a device special file major and minor numbers in linux

Hi! All files in /dev are special files... they represent devices of the computer. They were created with the mknod syscall. My question is: How can I know the minor and major numbers that were used to create this special file? thanks! Manuel ...

Device driver code signing for windows XP 32 bit

I have written a device driver for a device but each time I connect the device in windows XP 32 bit, "found new hardware" wizard appears. I am signing the driver using a Comodo code signing certificate and not using the cross certificate chain to link to microsoft root authority. Nor is the driver wql certified. So my question is to di...

How to intercept and translate USB events

I would like to use the Philips LFH-2330 to view images (with Windows Image Viewer or another viewer such as IrfanView, etc.) The LFH-2330 is a foot controller with four pedals (see here for example) used to control audio playback software for transcription. It comes with its own driver and software. The simplest setup for me would be ...

PCI Tv Tuner IR Sensor::Visual C++

Hi, Here's the thing. I recently bought a PCI Tv Tuner with a remote control (AverMedia Hybrid 007) and i want to use that remote control to control my PC (maybe create a basic media center application using media players that support slave mode, something like mplayer). The way i see it i have two options: Using the existing driver...

Register phone as HID (mouse)

Hello, Given a Windows Mobile 6.1 smartphone with Bluetooth I want to register it as a mouse. Basically what I do now: Start the Bluetooth service on device with Guid {00001124-0000-1000-8000-00805f9b34fb} Connect from desktop PC to device. Result: Device is detected with all services including the HID one but there is no driver ...

How to Display custom icon for a device in device manager

Hi, I am trying to learn about writing device drivers for windows. As part of it I need to display a custom icon in the device manager tree for my device. For that I have got a url from windows site that is http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/CustomIcon.docx But this document talks about vi...

Communicating with USB device

I am working on building a USB Video Class camera, which is supposed to work well with various flavours of Windows. The camera needs firmware upgrade support to upload new software images into it. There are two ways to do it, as far as I know. Use DFU. Use control endpoint of the UVC Class device to transfer bytes into the device. T...

Replace a already present service name while installing a device driver through inf

Hi, I am trying to install a device driver through INF file. But when i am reinstalling the device driver through the INF file created by me I am getting the following error in the log file C:\Windows\inf\setupapi.dev.log. Add Service: Failed to create service 'MyService'. !!! dvi: Error 1078: The name is already in use as either a se...

Epson OPOS ADK for .NET drivers for windows 7

Has anyone used Epson OPOS ADK for .NET for windows 7. i tried to install windows vista drivers on windows 7, since there are none available for windows 7, but it did not work. Please share any suggestions or ideas that might have worked for you. I am using a TM-88IV receipt printer ...

Windows7 Aureal Audio device driver

I am trying to Map physical address of my aureal sound card to a virtual address using MmMapIoSpace. I am using the code below which is not working as expected. The MmMapIoSpace always returns a 00000000 pointer. Logs from DebugView are also given.. CODE NTSTATUS CAdapterCommon::Init ( IN PRESOURCELIST ResourceList, IN ...

Loading Preferences in to a Mac Kernel Extension

Greetings! I am working on a kernel extension driver for OSX. It is a simple keyboard filter. I have preferences that are set through a preference pane regarding how this filter will act. I need to take the preferences from this preference pane and load them in to the kernel extension. I have googled all over and haven't found anything...

How do I create a COM (and other device) emulator in C#?

Hi. We have several legacy components that interact with COM ports, USB etc. I would like to create a .NET program that would emulate a COM port and log the traffic, relaying it to a WCF service endpoint somewhere or directly into a database. Maybe also wrapping a real COM port kind of like the decorator pattern. I have looked around...

What resources do I need to write an emulated device driver?

In a nutshell, I want to write my own device driver for windows, so that I can emulate a piece of hardware. I know very little about writing device drivers for windows, but I have a very firm understanding of the C and C++ languages, and I know enough x86(_64) assembly to get around. I'm not really sure how one would go about even compi...

IWDFDevice::CreateWdfFile returns ERROR_INVALID_FUNCTION?

Hi, I am writing a UMDF sensor driver for a device that connects to the system via Bluetooth and is accessible as an HID input device. I saw the "Sensor Development Kit" sample driver and noticed that it works with the Freescale hardware via HID also though it connects to the system via USB. Is there any difference in the way the UMDF...