winddk

Using WinDDK test utilities with Visual Studio 2005

I'm currently trying to run the NdisProt driver given by WinDDK 2003. I've build and installed the driver successfully. It comes with a test utility named uiotest When I build the utility with make it runs correctly. When I create a blank win32 application solution with Visual Studio 2005 it cannot connect to the driver during CreateF...

What replaced usbioctl.h?

I'm trying to create a test module for one of our USB devices and I'm using Windows XP with the Windows 2003 DDK. When I include the I'm getting a warning that it is obsolete, but without getting any hints as to what replaced it. I see that some definitions were migrated to , but the structure definitions for IOCTLs (like USB_NODE_CO...

How to build workspace from DDK examples

Hi All, I am new to win32 programming and also to driver programing. I have installed windows DDK on my system and have got some examples with the DDK but those examples dont have dsw file, i wanted to know how can i create .dsw file so that i can open that workspace in VC6 please help me in this regard. Thanks in advance ...

Readfile and Writefile in win32 fails with error code 1

Code : hHCDev = CreateFileA(completeDeviceName, //"F:\\test.txt", GENERIC_WRITE|GENERIC_READ, FILE_SHARE_WRITE|FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL); if (hHCDev == INVALID_HAN...

'align' : unrecognized extended attribute

Hi all, I was working with vc 6 and win ddk 3790.1830, now i have instsalled visual studio 2005 and win ddk 6001.18002 now when i compile my code i am getting "'align' : unrecognized extended attribute" can i know how to solve this problem. please help me its urgent with regards vinayaka karjigi ...

"fatal error U1087: cannot have : and :: dependents for same target"

Using the Microsoft Driver Development Kit (DDK), this error plagued me as I attempted even to build the default drivers included with the DDK. I had a some difficulty in tracking down the cause and solution through Google. In an effort to aid others who may experience this same problem, I am documenting it here. Error: "fatal error U...

IR_TRANSMIT_PARAMS.TransmitPortMask values?

I have look around everywhere and cannot find any documentation about the values to put in TransmitPortMask of IR_TRANSMIT_PARAMS structure for use with IOCTL_IR_TRANSMIT. All the documentation says is that it is "A bitmask that contains ports to transmit on". Thus, I first tried: PORT1 = 0x1 PORT2 = 0x2 It did not work! Then, on ...

Virtual Webcam Driver

Hi I want to develop a virtual webcam driver which from User mode I'll pass image to it and it will display as webcam output. I don't want to use DirectX filter and CSourceStream etc. Because they don't work on some programs which doesn't use DirectX for capturing webcam image. I have to write a kernel mode device driver so. Any id...

Win32 DDK: Is calling API from driver interrupt wrong?

Note: This is not a problem i'm experiencing, but it is something i'd like to understand (just because i want to be a better person, and to further the horizon of human understanding). In the bonus chapter of Raymond Chen's book, Raymond gives the example of a bug in a sound card driver: The original function, called...

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...

Microsoft Driver Verifier

In Verifier Dialog, there is a window to select drivers to verify. The list control has 4 column. 1. Verify? 2. Driver name. 3. Provider 4. Version My driver's provider and version are represented as "unknown". I don't know how can I set these values. Where can I set this value? By SignTool? Or Resource file? Yes, this is not a big ...

Printer Driver Development - from 32 to 64 bits...

Hi all, I've developed a driver that is compiled for 32 bits system. The driver is unidriver based. Does anyone knows what should be needed to get the driver compatible with 64 bits? What changes should I need to do to the code, if any? or is it just a matter of compiling it with a 64 bits version of the DDK? Thanks in advance. Nuno ...

Including a Windows DDK Header

I am writing a user-space Win32 application. However, as part of this application I need to make some DeviceIo calls to the Windows 1394 stack. The header file which contains the prototypes for these DeviceIo calls is included as part of the Windows DDK at: C:\WinDDK\7600.16385.1\inc\api\ntdd1394.h (Although the header claims to be ...

Windows: Is it *possible* to create a (virtual) video card driver?

i want to create a virtual monitor. The way this would work is that the virtual monitor would appear in a window on my desktop. As far as Windows knows it is just another monitor. It occurs to me that it would, as a practical matter, have to be done as video card driver (i.e. rather than the video going out a wire to an LCD panel, it wo...

DDK "Hello World"

How does one begin writing drivers for Windows? Is there some sort of official DDK "Hello World" example out there? While I'm sure it will be way above my head at first, eventually I would like to create a simple MIDI driver, much like the Maple Virtual MIDI Cable where the MIDI messages come from a user application rather than a physi...

What causes the differences between a driver on disk and a driver mapped to memory?

Hey, Today I tried to do a binary diffing of NDIS.sys, and I noticed something weird. I took a function, and began to diff it. The first 30 bytes were the same on the disk(using IDA) and on memory(using WinDbg). Then, something have changed. I saw something like "jmp _imp_XXXXX". the JMP bytes were the same, but the address was different...