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
3
votes
1 answer

How can I send arbitrary packets with a NDIS filter driver?

I am currently trying to send my own packets with a NDIS filter driver from the windows driver samples. I think that I have to send the packets with the function FilterSendNetBufferLists. But I don't know how to create those packets and whether I…
Gigliotti
  • 73
  • 6
3
votes
2 answers

Unable to load the windows driver

I was trying to load the windows driver in windows 10 using OSR Loader, the service for HelloWorld.sys has been created, but when I click on start, it's saying "This driver has been blocked from loading" The video I followed:…
tbhaxor
  • 1,659
  • 2
  • 13
  • 43
3
votes
1 answer

virtual joystick driver (VJoyD) and Direct Input

I have couple of questions: What is exactly VJoyD used for? Based on my reading win WDK (Windows Driver Kit) it provides joystick services in Windows (http://msdn.microsoft.com/en-us/library/ff542258(v=vs.85).aspx). If that is the case, can I use…
ActiveX
  • 1,064
  • 1
  • 17
  • 37
3
votes
1 answer

Windows driver with or without INF file

I've seen two ways to install Windows drivers. a. Using both SYS file and INF file. (such as NDIS driver) b. Only use SYS file, the driver will be loaded by a service. (such as drivers in C:\Windows\System32\drivers) So, my question is: 1. What…
3
votes
1 answer

error MSB8040: Spectre-mitigated libraries are required for this project

I have a problem that I cannot solve. My code: #include "ntddk.h" #include NTSTATUS DriverEntry(IN PDRIVER_OBJECT theDriverObject, IN PUNICODE_STRING theRegistryPath) { DbgPrint("Hello World!"); return STATUS_SUCCESS; } My…
Anonymous-User
  • 43
  • 1
  • 2
  • 7
3
votes
1 answer

After installing WDK VC++ is broken

Installed the WDK from: https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk Afterwords I can no longer compile any VC++ project. Repairing Visual Studios install doesn't fix the issue. System: Windows 10, x64, Visual Studio…
zezba9000
  • 3,247
  • 1
  • 29
  • 51
3
votes
2 answers

Silently use Microsoft XPS Document Writer printer to create XPS

For some days now I've been battling with printing XPS to file without the dialog. I've read posts on the matter in CodeGuru and by Feng Yuan (MSDN), along with many discussion topics here and I am still lost. Specifically my scenario is that I have…
Chen Harel
  • 9,684
  • 5
  • 44
  • 58
3
votes
2 answers

Extracting pathname components from UNICODE_STRING within a WDK Driver using win32 and C

I am trying to separate the components of a UNICODE_STRING path name in order to create the directory tree from the device root to the file leaf. This needs to be done in a WDK driver. I need to build up the directory structure a piece at a time…
user1403598
  • 485
  • 1
  • 6
  • 21
3
votes
1 answer

What is the purpose of the 'WaitReason' parameter on KeWaitForSingleObject()?

The MSDN docs don't explain what happens for the various options here (despite being quite clear about the 'WaitMode' paramter). Why would I pick 'Executive' over 'UserRequest' or the myriad other options in KWAIT_REASON?
CaptainOnly
  • 43
  • 1
  • 5
3
votes
2 answers

fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory

I am referring to C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ WDK files. Though I have installed latest 10.0.15063.0. It seems some files are missing in 10.0.14393 folder. Anyone could help me to in this. Reparing Microsoft Visual…
3
votes
1 answer

HOWTO: Monitoring file access by another process in Windows?

I am working on a program that processes image files. The problem I am running into is some of the images are very large and I don't know when the copy process is done. Right now the code is written in C# and is using the FileSystemWatcher class…
Sam Carleton
  • 1,339
  • 7
  • 23
  • 45
3
votes
1 answer

How do you build the Windows D3D9 refrast from source?

Microsoft distributes source code to reference implementations of their different Direct3D APIs to hardware vendors, driver developers, etc. This code builds using the ever-cryptic WDK (formerly DDK) build system, and virtually never works…
jrk
  • 2,896
  • 1
  • 22
  • 35
3
votes
1 answer

Sample usage of InfVerif.exe

InfVerif.exe is a new tool available with WDK10 for Driver INF verification. https://msdn.microsoft.com/en-us/library/windows/hardware/dn941086(v=vs.85).aspx I am trying to run the tool but keep getting its usage message. Can anyone show a sample of…
3
votes
1 answer

Solving "locally defined symbol imported" errors in VC++ 2015

I have a small command line program that uses Maxim's OneWire Public Domain API and WinUSB. It builds absolutely fine on my laptop using Win7/VS2013. Now I'm trying to move it to Win8.1/VS2015 on my new desktop PC, and I can't get it to build. Here…
rowan.bradley
  • 147
  • 3
  • 9
3
votes
1 answer

Example for executing a WMI method from Windows Driver

I am looking for an example of how to execute WMI method from Windows Driver. I need to call TestFunction from class MY_WMI_CLASS [WMI, dynamic: ToInstance, provider("xxx"), Locale("some"), Description("test xxx"), guid("{someguidhere}")] class…
ilia
  • 1,082
  • 11
  • 19