driver

How to know when \Registry\Machine\Software key is loaded?

I want to access \Registry\Machine\Software key from a driver. The driver is loaded prior to the registry key. Do I have to poll the key availability? Or there is something I can wait for? ...

What network library on what IRQL?

I somewhat confused because I've read that "everything" should be possible at IRQL_PASSIVE, but I am not so sure whether this includes winsock2 or other userland libraries. My normal understanding would be to use the WSK interface. But it would be much more comfortable if I could use normal sockets. As I am running into builder errors a...

DEVCON.EXE (driver tool) and OpenVPN

We have written an application that manages OpenVPN from the tray as an add-on for a bigger software package. OpenVPN includes a file called tapinstall.exe that installs the OpenVPN adapter (or any driver for that matter). Doing some research, this file is the exact same as a command-line tool called devcon that Microsoft includes in t...

Capturing print output as vector format (PDF,SVG,EMF,etc.)

BACKGROUND I am using a commercial application on windows that creates a drawing This application allows only two output options: (1) save as a bitmap file and (2) print to a printer the bitmap is useless for my purposes - I want the vectors Looking at the print output (I sent to the Windows XPS print driver) it seems clear based on th...

Completion Routine of IRP sometimes in IRQL 2 sometimes IRQL 0

Within a Thread in IRQL 0 the completion routine, triggered from an IRP, for a WskSendTo call is sometimes in IRQL 2 and sometimes in IRQL 0. This seems mighty strange to me. Does anyone know if this is normal behaviour? ...

How do I use WiX to deploy an INF-based USB driver

This question could be considered a duplicate of: http://stackoverflow.com/questions/677686/how-do-i-deploy-a-inf-based-driver Except that I want to do that entirely in the installer, not with a separate program. There's supposed to be an example downloadable here: http://msdn.microsoft.com/en-us/library/dd163212.aspx But there's no ...

windows: load a filter driver while windows is running

Is it possible to install a keyboard filter driver(like ctrl2cap) while windows is running and not having to reboot? I tried it once with a driver loader but I got a BSOD. If it is possible what was I doing wrong? What can I do next time to not get a BSOD? Also, if it is possible, could I do it with c++? Thanks for the help! ...

packing driver files with my installer

I have packed device driver files .inf,.sys, and .cat into my installer, they are installed into windows\system32 folder and windows\system32\drivers folder, however, when I plug in my device and let windows search for drivers, no drivers can be found. the driver files are valid. any idea how to install device drivers for windows automa...

Are there any new ODBC options for Foxpro?

We commonly use MS Visual Foxpro v9.0 SP1, the language, tables, and reports. However, sometimes we use an ODBC driver to connect to the tables. The ODBC driver was written for Foxpro v6, and doesn't support certain nested selects, autoincrement fields, or embedded casts. We would like to find an alternative to what we have. It could...

Registering org.gjt.mm.mysql.Driver

When I connect to mysql in my localhost, everything is OK. but when i move the whole project to another computer in the intranet and set the correct IP. the project can't connect to mysql, and stop at: Registering org.gjt.mm.mysql.Driver2009-08-09 14:29:41,679 What's Up ? Thanks in advance ! ...

Touchpad's absolute touch coordinates

Is it possible to read input directly from a Alps touchpad? I am trying to turn my touchpad into a cheap drawing tablet so I need to read the raw unprocessed x and y coordinates of where it was touched relative to the physical touchpad. So if I touch the bottom left corner of the touchpad, it should correspond to (0,0) etc. I am trying...

calling dll from kernel mode c++ windows

How would I go about calling a dll from kernel mode? I have tried making a custom lib file using multiple techniques but I cannot get anything to work. I have also researched on google but cannot seem to find anything. I was also curious if it was possible to create entries in the import addres table from c++ or at link time? Thanks for...

Microsoft's Microsoft Text Driver sees text as float operation.

Using .NET I have a text file with comma separated data. One of the columns consists of text like the following : 1997/020269/07 Now when I do a select with an OdbcCommand the string is seen as a float and it returns the 'answer' instead of the actual text! How can I get the actual text? Am I going to be forced to parsing the file ma...

Troubleshooting thermal printer driver

Hey all. I am troubleshooting a thermal printer issue when printing over bluetooth. The printer in question is Extech 3750T and the software is running on Windows CE. The driver is implemented on top of Winsock and is written in C++. As far as I can tell the connection housekeeping is all according to spec. The issue seems to be that so...

Communicating with a driver over a network in Windows

How could I communicate with a driver from a usermode application over a network? I can't have the driver communicate with a local usermode application which then communicates with the remote application because that wouldn't work for what I'm doing. I was thinking of using named pipes but I'm not sure if that would work over a network. ...

How to create a new port and assign it to a printer

We have a virtual printer (provided by a 3rd party) that is getting assigned to an invalid local printer port. The printer is always local (we aren't dealing with a remote print server or anything like that). I'd like to create a new local port (specific for our application), then configure the printer to be assigned to that port inste...

printer spool monitor

I want to capture following attributes from print server spool on print of any page. i am able to capture 3 of 4 attributes through these APIs(FindFirstPrinterChangeNotification, FindNextPrinterChangeNotification). but still i am not able to get data of file(so i can keep the thumbnail of this file by page by page) Computer Name - DONE ...

printer spool monitor

I want to capture following attributes from print server spool on print of any page. i am able to capture 3 of 4 attributes through these APIs(FindFirstPrinterChangeNotification, FindNextPrinterChangeNotification). but still i am not able to get data of file(so i can keep the thumbnail of this file by page by page) Computer Name - D...

java.sql.SQLException: No suitable driver found for jdbc:derby:

Hi .. I'm a beginner with jdbc ... I have a problem running this code : This code uses appache derby and in order to make it work I first started the derby server.. java -jar "C:\Program Files\Sun\JavaDB\lib\derbyrun.jar" server start And then started the program java -classpath derbyclient.jar -jar TestDB.jar I se...

how to find keyboard in /dev on osx

On linux / ubuntu, the keyboard and mouse devices are found in /dev/input/by-path/ Where is the keyboard device mounted in osx? I added a usb keyboard, and no devices got added in /dev folder. Is it located somewhere else, or is it totally unaccessible? Thanks. Edit: I was able to get some info on the keyboard using libusb: 046d:c...