driver

PHP - OCI and PDO OCI failed to run

Hi there, I am trying to install lighttpd and php separately on Windows XP. I successfully get the server to run. However, I failed to get the OCI to run in my server. Error message saying that failed to load the PDO Driver for OCI. When I check on phpinfo(), no OCI/PDO OCI driver is loaded. I got the correct dll file and php.ini corr...

Mini-filters callbacks and APCs (Windows)

Hello, in many cases callbacks registered by a mini-filter (pre/post operations) are called at PASSIVE_LEVEL. In case the pre-callback decides that it needs to do some work after the completion of some operation, it will ask the filter-manager to call the post-callback for that operation. The documentation states that if the pre-callba...

Quick CPU ring mode protection question

Hi, me again :) I am very curious in messing up with HW. But my top level "messing" so far was linked or inline assembler in C program. If my understanding of CPU and ring mode is right, I cannot directly from user mode app access some low level CPU features, like disabling interrupts, or changing protected mode segments, so I must use ...

Can you recommend an interesting driver application that's fit for novice?

I'm totally new to driver development, seeking of an interesting driver related task to get started. ...

help in setting Client Info in JDBC for Oracle

hello everybody i have an issue cause i have a java an application which needs to be audited so obviously i need a way in which the app can be identified with the application name so i googled and found that the ojdbc14 has the method .setClientInfo which allows to register the application with a customized name so i am trying to get it ...

How do they read clusters/cylinders/sectors from the disk?

Hello, I needed to recover the partition table I deleted accidentally. I used an application named TestDisk. Its simply mind blowing. I reads each cylinder from the disk. I've seen similar such applications which work with MBR & partitioning. I'm curious. How do they read clusters/cylinders/sectors from the disk? Is there some ...

Trouble installing sample portio driver from winDDK

Hi I am currently trying to build an application, that will talk to the super IO chip using port IO. As part of that, I am trying to develop a kernel-mode windows driver that I can contact, and which will do the IO for me. I have therefore downloaded the Windows Driver Kit v7.1.0, build 7600.16385.1, and I am trying to compile and insta...

Canceling a WSK I/O operation when driver is unloading

I've been learning how to write drivers with the Windows DDK recently. After creating a few test drivers experimenting with system threads and synchronization, I decided to step it up a notch and write a driver that actually does something, albeit something useless. Currently, my driver connects to my other computer using Winsock Kernel ...

WDK build-process hooks: need incremental build with auto-versioning

I've previously gotten incremental builds with auto-versioning working in a team build setting for user-mode code, but now I'm dealing with the builds of WDK device drivers. It's a whole new ball-game. I need to know what extension point, or hook, is available in the WDK build that occurs after the driver has been selected to be increm...

How to write a generic USB Host Driver for Printers from various vendors?

I want to develop a USB host on an embedded device that will talk to printers from various vendors. Drivers for the vendor specific printers would be available on PC which is ultimately communicating with printer but my device is facilitating this communication and needs to perform the basic handshaking/setup of the printer (i.e, it nee...

Linux RFID reader HID Device not matching driver

Hello, I got a RFID reader (GigaTek PCR330A-00) that is meant to be recognized under linux/windows as a (Human Interface Device) keyboard/USB. I hate to say this but it is working as a charm under Win7 but not "really" under Linux. Under Debian-like distros (x/k/Ubuntu, Debian,..), or Gentoo, or... I just can't have the device working...

Efficiency: what block size of kernel-mode memory allocations?

I need a big, driver-internal memory buffer with several tens of megabytes (non-paged, since accessed at dispatcher level). Since I think that allocating chunks of non-continuous memory will more likely succeed than allocating one single continuous memory block (especially when memory becomes fragmented) I want to implement that memory b...

How to repackage NVIDIA .run drivers into .deb with DKMS

At present, Ubuntu offers the 195.36.24 drivers as nvidia-current in their repository. This packaged driver is pretty cool as it uses DKMS so you don't have to keep reinstalling the driver after a new kernel version. The NVIDIA .run package drivers are at version 257 (beta) but they don't use DKMS so the graphics screws up every time a ...

Are there any difference between windows NT and windows XP driver development?

I found this tutorial on windows NT driver development, but not sure whether it can be applied for windows XP without modification. Anyone knows? UPDATE BTW, is it a MUST to use cdecl calling convention(int _cdecl main) to communicate with a driver? ...

windows I/O manager - IRP's classification in read-like and write-like

I am writing a windows filesystem minifilter driver that must fail I/O Request Packets (IRP's) in a preoperation callback based on their type (read/write). How can I find out from the callback parameters (or elsewhere?) if the operation is read-like ( only reads data ) or it's write-like ( modifies data on the disk - write, delete, forma...

What's the best resource for learning windows driver development?

For linux driver development, I can refer to <linux driver development> What about windows driver development? UPDATE Is there any goold books on this topic? ...

how can i make IOCTL calls in kernel mode (windows)

In user mode IOCTL calls can be made via DeviceIoControl function. What can I use in kernel mode to issue IOCTL calls? I must use this inside a filesystem minifilter driver. BACKGROUND I am writing a filesystem minifilter driver, and I must issue IOCTL calls to storage devices to find out their serial number and capabilities (removable ...

Need complete picture of virtual adress space

Hello, This image gives a good picture about Virtual Adress space. But it only says half of the story. It only gives complete picture of User Adress space ie.. lower 50% (or 75% in some cases). What about the rest 50% (or 25%) which is occupied by the kernel. I know kernel also has so many different things like kernel modules , devic...

Mac OSX: Passing a file from user process to kernel module.

Hello, I need to pass a link to file from a user process to the OSX kernel driver. By link i mean anything that uniquely identifies a file on the local filesystem. I need that link to do I/O on that file in kernel. The most obvious solution seems to pass a file name and use a VFS vnode lookup. However i noticed, that Apple Disk Images h...

Select and use a driver with mismatching PID on x64 systems

The Silicon Labs CP210x chip allows the PID to be customized which in turn means a customized driver is needed to have a matching PID. On x64 systems that require driver signing using a customized driver would also require signing that driver. Fortunately it is possible to use the original signed CP210x driver by manually select it for t...