Questions tagged [wdk]

For questions about the Windows Driver Kit (WDK, formerly WinDDK), which includes the tools and documentation needed to develop drivers for the Windows platform.

The Windows Driver Kit (WDK) includes the tools and documentation you need to develop drivers. WDK 8 Release Preview is integrated into Visual Studio and provides almost all of the tools you need for developing, building, packaging, testing, and debugging drivers.

For more information, visit the WDK website.

756 questions
0
votes
2 answers

File System Filter MiniDriver

I have a Program.exe that I need to intercept. That specific program uses CreateFile & ReadFile, however I need to intercept ReadFile function. I thought about writing my own File System Filter MiniDriver. I found this link by Googling:…
user1327407
  • 103
  • 1
  • 7
0
votes
0 answers

fwrite understanding

I am writing a driver and using fwrite for logging data to a file. I have a logger class which uses fwrite. Now i am passing the pointer and size but the data written into the file seems to be 161 bytes while I pass 160 as the length (call by ref as…
Abhinav
  • 1,496
  • 3
  • 15
  • 31
0
votes
3 answers

Program crashes when SetupDiGetDeviceInterfaceDetail is called

I'm trying to get the path of a device by using the SetupDiGetDeviceInterfaceDetail() function, but it crashes everytime I call it. I've have been working on this for over 12 hours but still couldn't find out what is wrong with it... Can someone see…
Danny
  • 9,199
  • 16
  • 53
  • 75
0
votes
1 answer

What realy means PHYSICAL_ADDRESS value in WDK drivers?

I have bit of a problem with understanding PHYSICAL_ADDRESS structure in WDK. I thought it's real physical address in physical memory. Now I've tried this - I've got virtual PC with 512 MB RAM and code in my driver PHYSICAL_ADDRESS pa; pa.QuadPart =…
Miroslav
  • 444
  • 1
  • 7
  • 21
0
votes
0 answers

Can I build standard DLL (not a driver) with Windows DDK?

Is it OK to compile a standard DLL with Windows DDK? My main goal is to link against msvcrt.dll; I know there are methods to link msvcrt.obj from DDK but otherwise compile with Visual Studio, but I use only command-line tools and DDK appears to have…
Mikhail Edoshin
  • 2,639
  • 16
  • 25
0
votes
1 answer

Not getting correct feature report

I have asked a similar question previously, but 1. no one answered and 2. it is a bit different. I have managed to get the correct file Path and created a handler by using CreateFile. I have then tried to use the HidD_GetFeature() function, but when…
Danny
  • 9,199
  • 16
  • 53
  • 75
0
votes
1 answer

Why is SetupDiGetDeviceProperty function not working?

I'm trying to use the SetupDiGetDeviceProperty, but apparently it couldn't find such functions within the setupapi.h. I have looked at the documentation and included all the header and library files, but it's just not letting me use the function...…
Danny
  • 9,199
  • 16
  • 53
  • 75
0
votes
1 answer

Is there an API call to get all the sata hardware devices ?

I trying to get all the SATA hardware devices that connected. How can i do it ?
Yanshof
  • 9,659
  • 21
  • 95
  • 195
0
votes
2 answers

mingw32 gives error when I include ddk/winddk.h

I'm new to Win environment, trying to write code which use win kernel API but on Ubuntu 10.04 ... using mingw32 (more specifically, i586-mingw32msvc) My code: #include int main() { return 0; } But I'm getting to many errors…
code muncher
  • 1,592
  • 2
  • 27
  • 46
0
votes
1 answer

Split NDIS_BUFFER (WDK)

I am new to driver programming and I cannot find solution for one probably simple problem. I am editing the ndis_prot sample driver from wdk examples. Curently, packet comes to driver as Irp and is stored into pNdisBuffer. I need to split up that…
Miroslav
  • 444
  • 1
  • 7
  • 21
0
votes
1 answer

How can i do rescan to hardisk using DDK ?

Is it possible to do rescan to some device using the ddk ?
Yanshof
  • 9,659
  • 21
  • 95
  • 195
0
votes
3 answers

Statically linking multiple libraries with WinDDK

I am using the DDK to build a project. Several of the build targets generate small internal libraries -- for simplicity, let's call them LibA.lib, LibB.lib, and LibC.lib. But the code for LibA references code from LibB and LibC. To use LibA in a…
user1354557
  • 2,413
  • 19
  • 29
0
votes
1 answer

'align' : unrecognized extended attribute

I was working with vc 6 and win ddk 3790.1830. Now I have installed Visual Studio 2005 and win ddk 6001.18002. Now when I compile my code I am getting "'align' : unrecognized extended attribute" How can I solve this problem?
Vinayaka Karjigi
  • 1,070
  • 5
  • 13
  • 37
-1
votes
1 answer

What are the correct SDK and WDK versions to avoid 'cannot open source file - ntifs.h' error in Visual Studio 2022 on Windows 10?

I keep getting this error because of my wdk and sdk versions: "cannot open source file - ntifs.h" I get these errors when I try to build my project: cannot open source file: ntifs.h cannot open source file: ntstrsafe.h I am using Visual Studio 2022…
-1
votes
1 answer

Getting the name of a driver from the device object

I'm wondering if it's possible to get the name of a driver from the device that it created. Let's say I have a symbolic link that points to a device, \.\RTF64 -> \Device\RTF64. Is there any way to get the driver name (.sys) using just this…
CrantZ567
  • 1
  • 1