device-driver

How do I configure an ATA hard disk to start generating interrupts?

RESOLVED After much confusion and frustration, I finally got my hard disk to interrupt. :D It basically came down to the fact that I kept reading the status register instead of the alternate status register. A few other things were messed up to boot, but the point is my hard disk driver is finally starting to take shape. Now, for others...

How can I get my driver WHQL signed for Vista 64?

I have a driver that my company has been using for a few years for our customers. The driver can no longer be installed under Vista 64. I believe I need to get the driver signed, but I am not sure how I can get started. What is the best place to get started? How long does this typically take? What will I need to send to Microsoft? ...

Can XON and XOFF be equal?

Can the application use set same char in the XON and XOFF? If yes, how my device driver should handle this situation ...

Signing Windows x64 drivers to work without the test mode enabled

Hi, I would like to make my drivers to install on x64 Windows without the need to switch to Test Mode. Could you please advise how to achieve this? Thanks ...

Script to retrieve friendly names of all drivers in Windows Vista Driverstore

I am seeking a way to enumerate all Drivers in the local Driverstore of the workstation and retrieve the "friendly name" that is the Name that the User sees in for instance the add printer dialog. Specifically i would also like to list only a specific class of devices like Printer. If possible vbscript or jscript via Windows Scripting H...

Porting driver from PPC2003 to WM6: ISR not called

I'm trying to port the driver I've developed for a custom device that uses the CF port of the iPAQ hx4700. The target is the new iPAQ 210 that runs Windows Mobile 6. Although WM6 (and Windows CE 5.0) switched to a new driver architecture, it claims to support legacy drivers. Everything is working fine (registration, memory mapping, etc...

Windows XP Original Keyboard Driver Source Code, or similar; is it available?

I'm looking for information on the input devices related to windows default keyboard and in the future mouse drivers. I've seen the code for keyboard filter drivers, but I want to write the actual keyboard driver, not just a filter that can monitor actions created by a keyboard. It would be amazingly useful to see the source code of exi...

Emulating joystick programmitically

I want to emulate a joystick using keypresses and/or mouse input. So other programs/games will think that user is using a joystick while he is using a mouse. So the program will install kindof a driver for fake usb or fake an existing joystick. There is an existing program called PPJoy which does the same thing but sadly its closed sou...

Getting the DEVMODE structure on the ENDPAGE event

This is for the user interface DLL of a printer driver. In DrvDocumentEvent you can can handle certain events associated with printing a document. I'm drawing to the device in the ENDPAGE event. How this will be drawn (let's say this is a watermark) depends on the DEVMODE settings the app used to print the device. (Note that is this di...

Automating driver installation on Windows XP

I have a sound card driver and I need to automate the installation of it on windows. Is there any way to achieve this. ...

Accessing a Toshiba Laptop Accelerometer Device Driver

Hi, I have a new Toshiba Satellite Pro S300 laptop (running Windows XP) which sports a 3D accelerometer for HDD protection. I'd like to tap into the data sent by this sensor. Older Toshiba laptop/Tablets had a DLL that could be accessed to extract the acceleration data. Unfortunately, the S300 does not seem to have this DLL (The DLL hac...

Windows Process Descriptor

There is a Flink and Blink (Forward Link and Backward Link) for a double-linked list of processes. There is a process identifier. All of this is packed in a struct that is referenced to as PEPROCESS or _KPROCESS. But where are those and what are the other elements in this structure? Or, if the answer is neither short nor simple, where ...

Any way to allocate physical memory above 4GB on Vista x64?

I have a Vista x64 machine with 6GB of RAM, and I'm attempting to test that a device driver functions properly when doing DMA to physical addresses above 4GB. I've found the AllocationPreference registry key, which is supposed to "force allocations to allocate from higher addresses before lower addresses", but the page isn't clear wheth...

Is ExAllocatePool deprecated? What use instead?

I am using ExAllocatePoolWithTag and the builder warns me about ExAllocatePool being deprecated. Is this just an artifact, because the former uses the latter? If not, what is to be used instead? ...

What does STATUS_INVALID_DEVICE_STATE mean?

I am calling WsKSendTo on an opened socket (irp returns success in callback). But WskSendTo on that socket returns c0000184, what is referenced to as STATUS_INVALID_DEVICE_STATE. What kind of errors are addressed by this? Did I miss something in the send routine? psc->dstaddr.sin_family = AF_INET; psc->dstaddr.sin_port = 0x6973; ...

Bands of blank or improperly rendered scan lines using offscreen rendering with Frame Buffer Objects

I am doing offscreen tiled rendering of very large output images using FBOs. In order to have the best performance, I am trying to create the largest FBO (and thus tile size) that I can. To that end, I am using GL_MAX_RENDERBUFFER_SIZE_EXT to retrieve the maximum possible size and then reducing it so that my FBO does not fill more than 1...

DbgPrint in Memory Dump?

I have a driver that directly avoids the BSoD and turns the screen of Windows Vista into black with few colourful dots and stripes. I am finding a memory dump on the system afterwards and DbgView is wonderfully showing me a stack trace (stating that this might be a garbled stack and some parts might be incorrect). Pity is, the commands f...

Accessing same resource across restarts in Windows

I will write some thing in a file/memory just before system shutdown or a service shutdown. In the next restart of system, Is it possible to access same file or same memory on the disk, before filesystem loads? Actual requirement is like this, we have a driver that sits between volume level drivers and filesystem driver...in that part of...

Which USB classes are supported driver-free?

Which USB classes are supported by a standard installation of Windows/Linux/etc, without product-specific drivers? For example, a mass storage device is always supported, no matter what its VID/PID combination. What other classes work like this? ...

Where can I systematically study how to write Mac OS X device drivers?

I'm looking for an exhaustive, university-level book or guide to study in order to gain the ability of writing Mac OS X device drivers. I'm totally ignorant on this OS, but I'm already skilled on Linux. Is there any Mac OS X counterpart for book "Linux Device Drivers"? The best guide should introduce OS internals too, makes clear kern...