Posts Tagged ‘windows’

Windows Performance Monitor

November 1, 2012

This is a useful tool.

More information

Works fine on Windows 7 too.


Driver installation issues

March 12, 2009

I ran into an issue installing my driver on a second PC that installed fine on two others. Most of the install seemed to go fine but at the end the install failed. Here’s the error I got:

This device is not configured correctly (code 1).

The official Microsoft documentation on the errors is seriously useless. However, I had much more luck on OSR. This thread informed me that I could get further details on what caused the failure by looking at the file C:\WINDOWS\setupapi.log (C:\WINDOWS\inf\ on Vista). Indeed, there is a nice log of the setup process that was followed for the install and the error that eventually killed it. The error I was having was something like this:

#E279 Add Service: Failed to create service “somename”. Error 1078: The name is already in use as either a service name or a service display name.

It pointed to the service in my inf file that was failing to install. With some pointers from this thread I realized what the problem was. I had gone through a full renaming of my driver and had installed the previous version on the failing machine. In the inf the service to be installed had a different key, but was using the same description. To get the install working again I removed all entries for both driver names from HKLM\SYSTEM\* in the registry, then rebooted to updated Windows copy of the driver database.  Installed again and success!

Windows Driver Development

March 12, 2009

Recently I have been working on developing a USB driver for Windows. This has been quite a learning curve but it has been very nice to get closer to hardware again.  Here’s some of the information and resources I’ve found useful.

WDF – Framework for a driver that handles most of the ugly PNP for you.

OSR – The place to go for answers on driver development. The mailing list has been a lifeline. Microsoft developers even hang out there.