drivers

Maximum number of drives in windows?

I'm trying to figure out the available disk space programmatically in windows. For this, I need to first get a list of the available drives, then check which of those are local drives and then query the available bytes on each local drive. I'm a bit stuck on the first part, where the API presents two functions: GetLogicalDrives (http:...

Unit testing device drivers

I have a situation where I need to write some unit tests for some device drivers for embedded hardware. The code is quite old and big and unfortunately doesn't have many tests. Right now, the only kind of testing that's possible is to completely compile the OS, load it onto the device, use it in real life scenarios and say that 'it works...

Windows Error Logging (Severity=Success)

I am using IoWriteErrorLogEntry to log an error to the Windows event log (from a driver). Everything works EXCEPT that messages with Severity = Success (yes, Success is defined as per the msdn documentation) displays in the event log with an error icon. Is there an issue with using Severity = Success in the system log? ...

Microsoft ODBC driver for Oracle Syntax error or access violation (-2147217900)

I have a large VB program that connects to Oracle database. strCn = "Driver={Microsoft ODBC for Oracle};" & _ "SERVER=PSPROD;" Set Cn = New ADODB.Connection Cn.ConnectionString = strCn Cn.CursorLocation = adUseNone Cn.Open There are many users of my program so I have a table that contains each user's login name and their ac...

WDM returns privilege error for WMI request

My application attempts to update data in my NDIS IM driver using the usual WMI Put/PutInstance calls. The PutInstance returns error WBEM_E_FAILED. The wmiprov.log shows the following: WDM call returned error: 1314 WDM specific return code: 1314 This error translates to "A required privilege is not held by the client." My applicatio...

Standard Keyboard Driver Source Code - Where can I find this???

Hello, I am looking for the standard source code for a keyboard. Is there any where that I can download this source code so that I can modify it for my own use? Thanks in advance! ...

How can I get windows to remember my device after installing it so I don't get the new device message upon every connection?

I have a piece of hardware that we created that connects to my PC via USB. We also wrote the drivers for it. EVERY time I plug this device in, the new device message comes up, even though the drivers are installed. I can cancel the dialog and it works fine, but it looks like crap and I'll be selling this product and want it to functi...

How should I get started on writing device drivers?

I would like to learn how to write device drivers because I think it would be fun. I use a Mac OS X Macbook, but I also have an Ubuntu machine (running on a Mac Min). I am pretty familiar with C and currently am reading this book. I have found some links online such as Mac Dev Center. I am doing this because it would be fun. I think ther...

Does the same windows service run per-logged in user?

I'm building a Windows service that performs different actions based on which Windows user is logged in. If I install my service under one user, and set it to start-up, will a separate instance of it run for each user that logs in, continuing to run, even if more than one user is currently logged in? This is the behavior I would like, b...

How do I install hardware driver using C++ on Win32?

How do I install a hardware driver (inf file) using C++? Platform : Win32 ...

Is anyone familiar with the undocumented ObReferenceObjectByName windows kernel function?

I read a very fascinating article that was about programming drivers using the wdk, and one of the functions it used is called ObReferenceObjectByName. This function has given me lots of headaches. The first bad thing is that it's not documented by microsoft. The second thing, is that the language used in the article was C++, and I wa...

best solution to use a DLL/Driver?

Hi, Im working with a CD722UN Customer Display for our POS application. it comes with a USB2.0 connection and a installation package containing a driver ect.. now, for my application. how should i do when i want to access this driver? at the moment i'm using the "CD722UN application"s .dll path but that can warry from clients OS ect.....

Difference between JDBC Driver type numbers

I am very new to Java, when i was going through the JDBC section, i noticed that JDBC has different Drivers like Type 1 Driver Type 2 Driver etc.. to Type 4 Why did they get the name like Type 1, Type 2 etc.., Is there any logic? ...

How can WDK programmatically restart a video/display driver?

I'm looking for a utility method to restart my video/display driver. The WDK seems like a good place to start. Does anybody know how to effect this? ...

Installing drivers from NSIS installer in x64 system.

I want to add support for x64 OSes to my NSIS installer. One of the installer's task is drivers installation. I've written a special NSIS plugin for this task. This plugin uses Driver Install Frameworks API (DIFxAPI) to install drivers. The problem is that this API does not work in WOW64. Is there any way to create x64 installer appli...

Driver Component Confusion with Windows Embedded

Hi - I need some help from someone familiar with Windows Embedded Target Designer and Component Designer: On my Windows Embedded image I have two driver components that are "conflicting", but not for IO reasons. The first driver component is the touchscreen driver that includes its own serial port enumerator called pmserenum.sys. Th...

Secondary monitor bug: a problem in WPF or in the graphics driver?

I have discovered a strange bug with my WPF application and I am trying to determine whether it is a problem with WPF or my graphics driver so that I can report it to the appropriate company. I have a Quadro FX 1700 with the latest drivers (197.54) on a Windows XP system, running a .NET 3.5 SP1 application. I have dual monitors, my prim...

Buffer Overflow errors when reading ConfigDelay and Manufacturer info from registry

This is a strange driver error which doesn't make a lot of sense to me. I am running an application developed in C# .NET which our company develops. I was monitoring the application using process monitor and noticed that it accesses the registry a lot. The output on Process Monitor looks like this, Operation Result Path...

OpenAL and Vista: Device is always 'Generic Software'

I'm writing the audio part of a game, and I'm using OpenAL. I want to use some extensions, but the tests always fail: TRACE: AudioManager - Sound device: 'Generic Software' TRACE: AudioManager - Enabling OpenAL extensions... TRACE: AudioManager - Compressor support: NO TRACE: AudioManager - Reverb support: YES TRACE: AudioManager - Chor...

Forcing Windows to re-scan for drivers

As part of our software's installation, we install drivers for a required 3rd party hardware component. Currently it's up to the user to manually scan for their hardware's drivers once our installation is completed. Is there an easy way to get Windows to automatically look for the drivers we installed? If so, how does it work? Do we ...