driver

I want to establish a TCP/IP connection over a UART connection (Windows XP/7)

I want to connect two computer via serial but for each to see each other via a TCP/IP connection. Ie, create new network device on the computers that are in actual fact serial ports. The reason for this is that I am actually testing the medium in which the serial connection is made (wireless), and part of the experiment will be to use T...

Microsoft ODBC for Oracle and JDBC

Is the Microsoft ODBC driver for Oracle compatible with JDBC? If so, could an example be given? ...

Communicate with iDevice via C?

I have seen this being done by the jailbreaking program, Spirit. I would just like to return simple information like the what kind of iDevice (like iPhone 3G, iPod touch 3G, iPad). Would this be very hard to do, or something kind of simple. (Such as: idevice_t *device; device->version) ...

How to create own XP printer driver

How would I create my own XP printer driver which will do the following: print to file (probably XPS format) put this file into a password protected ZIP file email the zip file to a configured email address ...

Interfacing socket code with a Linux PCI driver

I have two devices that are interfaced with PCI. I also have code for both devices that uses generic socket code. (The devices were originally connected by MII/Ethernet.) Now, I need to write a PCI device driver to transport packets back and forth between the two devices. How do I access the file descriptors opened by the socket co...

Intercepting process execution in a NT driver

I have developed a driver for Windows XP which is able to monitor the execution of processes. A callback function receives the notifications using standard WDK API (PsSetCreateProcessNotifyRoutine). The driver then decides if the process should be authorized or not; if not, it must block its execution/kill it. What's the cleanest way t...

Best backwards compatible way to programmatically capture sound going to speakers

What would be the best approach to take in order to achieve a backwards compatible (Windows XP through Windows 7) way to capture sound that is being sent to the speakers on a machine, even if the audio driver doesn't expose the "Stereo Mix" recording device. For extra points, it would be great if this approach allowed for capturing soun...

install inf (driver) from nsis on windows vista or greater

i try installing a driver in a Windows 7 x64 environment, by using cmd, and a nsis installer made from a script from cmd i do for example: InfDefaultInstall C:\kit\driver\win7-64\my_driver.inf from nsis i do (this is the line from the script): Exec 'InfDefaultInstall $INSTDIR\driver\win7-64\my_driver.inf' the inf file should cop...

How to call usermode from Windows kernel?

Hello, I'd like to call my app from my driver when an interesting event happens in the Windows kernel. I need to be able to pass at least 4 bytes of data back to user mode. How to achieve this? These events might happen quite, but not too, often, so I don't want to build a queue system and use IOCTLs. I was thinking of something like t...

How do I trap display driver drawing commands on Mac OS X?

I am trying to find a clean and elegant way to trap all display driver drawing commands on Mac OS X so I have visibility to anything that gets drawn on the screen, before it goes to the physical display driver. Simple bitmaps won't do it -- I need the actual drawing commands and not just notifications on which areas have changed. This ...

Git merge driver problem.

Hi, I'm trying to get git to allow me very manual merges due the way my code is (long story, it is explained here). I almost got it the way I wanted, just something missing in a specific situation. Shouldn't be too hard: I've got the custom driver to use WinMerge with something likec:/wm/winmerge.exe $1 $2 $3 (into c:/wm/wmrg.sh), git c...

USB storage device SerialNumber from minifilter driver (from USB device descriptor)

I want to extract a USB storage device serial number from inside a minifilter filesystem driver, inside the InstanceSetup callback using the technique described here the only difference is that I do it in kernel-mode. I use: status = IoGetDeviceInterfaces( &GUID_DEVINTERFACE_DISK, NULL, 0, &SymbolicLinkList ); to...

Programming a virtual second monitor driver: where to begin?

There is an iPad app called Air Display which turns your iPad into a wireless second monitor for your computer. I haven't personally tried it so I can't vouch for its effectiveness, and I assume it has a significant amount of lag, but I think it would be very useful to toss something for reference onto the iPad screen and then work on yo...

Creating drivers and firmware

If I was told I needed to create a driver for some product (say, a game controller), how would I go about creating one? Is this something you could do normally in C/C++? And what about firmware for external deviced connect to USB? How is this created usually? Is this also done in C/C++, or some lower level language? Thanks! ...

How to get Driver Name?

Hi, how can I get the driver's name of a device to use with CreateFile? handle = CreateFile( DRIVER_NAME_HERE, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); thanks! ...

CGI Application Authentication using multiple drivers

Hi I have been trying to authenticate my CGI application through 2 drivers, one that uses username/password stored in the database and other using ldap active directory. following is the code $self->authen->config( DRIVER => [ 'DBI', DBH => $self->dbh, TABLE => 'user', CONSTRAINTS => { 'user.username' => '...

Creating a custom ODBC / OLE driver in C#

Does anyone know how to create an ODBC or OLE driver preferably in C#? What I want to do is creating a custom data source which I can use in Excel and Access. Or do think of another way how to do this? Thanks in advance for your responses! ...

install driver using c++

I'm trying to install driver behind the user: I've create DLL which call SetupCopyOEMInf using c++ then i call it from VB application: C++ code: PBOOL bRebootRequired = false; PCTSTR szInfFileName = (PCTSTR) "c:\\temp\\ttt\\Driver\\slabvcp.inf"; if(!SetupCopyOEMInf(szInfFileName,NULL, SPOST_PATH, SP_COPY_REPLACEONLY, NULL, 0, NULL, N...

How to setup timer resolution to 0.5 ms?

I want to set a machine timer resolution to 0.5ms. Sysinternal utility reports that the min clock resolution is 0.5ms so it can be done. P.S. I know how to set it to 1ms. P.P.S. I changed it from C# to more general question (thanks to Hans) System timer resolution ...

SQLite OLE DB driver for C++ (MFC)

I am looking for OLE DB driver to acces SQLite. Is there any? I need it to use under MFC, not .NET. I have found this but it is .NET driver: http://CherryCitySoftware.com/ccs/Home/Default.aspx and this but I have no references to this: http://www.newobjects.com/product.asp?Category=71 Thanks ...