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

Can Printer Extension UI use the Universal Windows Platform (UWP)?

Can Printer Extension UI use the Universal Windows Platform (UWP)?
Kishor
  • 4,006
  • 7
  • 30
  • 47
7
votes
1 answer

NtOpenKey fails with 0xC0000034 - how to fix this?

I'm creating a user-mode CMD app using VS 2013 in C++ and I'm trying to use the native registry editing functions in it. I'm trying to open certain key with 'NtOpenKey' but it always fails with 'STATUS_OBJECT_NAME_NOT_FOUND' and I'm sure that the…
AnArrayOfFunctions
  • 3,452
  • 2
  • 29
  • 66
7
votes
4 answers

Programmatically differentiating between USB Floppy Drive and USB Flash Drive in Windows

On Windows (XP-7), is there a reliable way of programatically differentiating between USB floppy drives and USB flash drives in C++? At the moment, I'm using WMI to get updates when new Win32_LogicalDisk instances are detected, and then using the…
user82116
  • 418
  • 5
  • 12
7
votes
1 answer

Is it possible to retrieve the CPU that created a WDFREQUEST?

I am trying to affinitise the completion of CompleteRequest to the CPU that originally issued the request. Is there a way to retrieve the CPU that issued the request during FdoDeviceControl or any onother way to see where the request came from…
Thomas Kejser
  • 1,264
  • 1
  • 10
  • 30
7
votes
2 answers

Windows Driver Development: Deploy option missing in Visual Studio 2012

I was trying to compile and deploy the WFP sample obtained from MSDN called msnmntr but the same problem applies to all samples. This and all samples fail to deploy because there's one step in the documentation that are missing in Visual Studio 2012…
ppaulojr
  • 3,579
  • 4
  • 29
  • 56
7
votes
1 answer

Assembler file as input for a driver build with the WDK tools

How to get an assembler file to be compiled and linked into a driver build. To clarify a bit The SOURCES file…
Christopher
  • 8,912
  • 3
  • 33
  • 38
7
votes
2 answers

My SetupDiEnumDeviceInterfaces is not working

I am interested to find out if I am doing this right: //DeviceManager.h #include //#include #include #include #include #include #include extern "C"{ #include…
Danny
  • 9,199
  • 16
  • 53
  • 75
6
votes
1 answer

Linux spin_lock vs. NT KeAcquireSpinLock

From what I can gather: NT's KeAcquireSpinLock is equivalent to spin_lock_bh: the one raises IRQL to DISPATCH_LEVEL, the other masks the bottom half interrupts -- functionally the same. While the NT variant keeps the OldIrql, the Linux variant…
Ilya
  • 5,533
  • 2
  • 29
  • 57
6
votes
0 answers

CreateFile fails unless I disable/enable my device

Updated (at bottom) I have a UMDF video driver based upon the IddCx sample. I have a command-line test (running 'As Administrator') that calls CreateFile on a video adapter device instance to get a handle to it for IOCTL purposes. The test fails on…
Scott Smith
  • 3,900
  • 2
  • 31
  • 63
6
votes
3 answers

Windows virtual mouse driver

I am developing a KMDF virtual mouse driver. The general idea is a KMDF root enumerated non-filter driver which will be able to send output reports to the mouse and keyboard driver stacks. My driver is already working and sending requests to other…
hedgar2017
  • 1,425
  • 3
  • 21
  • 40
6
votes
2 answers

Get file path in minifilter driver

I've used the code below but it is giving me an result of file path. status = FltGetFileNameInformation(Data, FLT_FILE_NAME_OPENED | FLT_FILE_NAME_QUERY_ALWAYS_ALLOW_CACHE_LOOKUP, &nameInfo); DbgPrint("\n Filename :…
user4604440
6
votes
1 answer

Retrieving PCI coordinates by Windows' API (user mode)

Is there a way to obtain PCI coordinates (bus/slot/function numbers) of devices by using Windows c/c++ API (e.g PnP Configuration Manager API)? I already know how to do it in kernel mode, I need an user-mode solution. My target system is Windows…
Giuseppe Guerrini
  • 4,274
  • 17
  • 32
6
votes
1 answer

How can I develop windows driver that does not touch hardware?

I need to create a WDM driver that emulates a device that is not present. The driver needs to be loaded when the O/S boots, opened and closed via SetupDiXXX and CreateFile, needs to respond to DeviceIoControl, etc. I have the driver coded, but XP…
Clay
  • 1,159
  • 1
  • 9
  • 20
6
votes
1 answer

How to trap file access attempts with a filter driver (kernel) and offer dialog to allow/deny (user)?

I've been looking at Windows's File System Filter Drivers. I started with this "FsFilter" example: http://www.codeproject.com/Articles/43586/File-System-Filter-Driver-Tutorial With effort, I managed to get it built and signed in versions that work…
6
votes
0 answers

How do I create a network bridge programmatically?

I want to create a network bridge between two adapters in windows 7 using c#. I could not find proper documentation for the API to access the components and create the bridge. Please help me to find a solution. Thanks, Bhaswanth Gattineni.
Bhaswanth
  • 283
  • 6
  • 14
1 2
3
50 51