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:...
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...
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?
...
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...
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...
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!
...
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...
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...
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 a hardware driver (inf file) using C++?
Platform : Win32
...
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...
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.....
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?
...
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?
...
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...
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...
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...
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...
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...
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 ...