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

AcquireCredentialsHandle fails in kernel mode, when using SCH_CRED_FORMAT_CERT_HASH

I call AcquireCredentialsHandle in a kernel driver, passing in SCHANNEL_CRED with the dwCredFormat set to SCH_CRED_FORMAT_CERT_HASH. It fails with SEC_E_NO_CREDENTIALS. Here is my code: BYTE certHashBytes[20] = {…
wezten
  • 2,126
  • 3
  • 25
  • 48
10
votes
3 answers

How to use ZwQueryInformationProcess to get ProcessImageFileName in a kernel driver?

I'm writing a simple kernel driver for my application (think of a very simple anti-malware application.) I've hooked ZwOpenFile() and used PsGetCurrentProcess() to get a handle to the caller process. It returns a PEPROCESS structure: PEPROCESS proc…
fardjad
  • 20,031
  • 6
  • 53
  • 68
10
votes
0 answers

Windows 8 Remote display driver model

I'm trying to port the current XPDM Mirror Driver to Windows 8. Microsoft disables Mirror Drivers completely under Windows 8, but on MSDN it says A remote display driver model that is based on the mirror driver architecture can also run starting…
Guo
  • 305
  • 4
  • 13
9
votes
1 answer

ATL library :warning LNK4254 and LNK4078

I am making a project using Visual C++ 2010 under Windows 7. I need to use ATL library, in fact I installed Windows WDK (version 7600.16385.1) In particular I using the following libraries from…
Giorgio
  • 159
  • 2
  • 5
9
votes
2 answers

What is winapifamily.h?

Can't find it in Windows SDK and DDK, but some of our existing code includes it. The only meaningful link I found by Google is: http://msdn.microsoft.com/en-us/library/windows/hardware/hh450839%28v=vs.85%29.aspx What's it?
MQ Gu
  • 643
  • 2
  • 9
  • 19
9
votes
3 answers

Creating a virtual HID device

I'd like to create a virtual HID device (emulate it with a driver). It must be visible to clients that implement standard HID detection: Call HidD_GetHidGuid() – Get the HID device class GUID Call SetupDiGetClassDevs() – Get a handle to a set of…
jsmith
  • 367
  • 1
  • 4
  • 12
8
votes
3 answers

Using boost in WDK build environment for applications?

I am using the Windows Driver Kit (WinDDK 6001.18001) to build my userspace application rather than Visual Studio 2005. I am taking this approach because we also have to build driver components, so I'd prefer to have a single build environment to…
ski
8
votes
2 answers

WFPSampler Compilation issue - wfpcalloutsclassreg not found

The compilation of the Microsoft demo WFPSampler Project fails in any setup (32/64 - debug/release) on WFPSamplerCalloutDriver.InX at line 36 : [ClassInstall32.nt$ARCH$] AddReg = WFPCalloutsClassReg : Stamping .\WFPSamplerCalloutDriver.inf…
Damien
  • 1,492
  • 10
  • 32
8
votes
2 answers

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…
Brad
  • 159,648
  • 54
  • 349
  • 530
8
votes
2 answers

__security_init_cookie in Windows driver causes bugcheck KERNEL_SECURITY_CHECK_FAILURE

Something very strange is happening when I target Windows 8.1 when I compile my driver. As soon as it loads, it crashes with bugcheck KERNEL_SECURITY_CHECK_FAILURE, first parameter 6, which means "The stack cookie security cookie was not properly…
InvokeStatic
  • 81
  • 1
  • 5
8
votes
1 answer

Port 32-Bit Windows driver to 64-Bit Windows

Since our applications run in fullscreen mode, we have developed a keyboard hooking driver to disable user input for keys like ALT+F4, CTRL+ALT+DEL and so forth. The driver is developed in C using the Windows Driver Kit. Compiling for 32-Bit works…
Faizan S.
  • 8,634
  • 8
  • 34
  • 63
7
votes
7 answers

Going down from C++ to C: alternative to std::map?

I am looking for minimalistic alternative for std::map, which would go into Windows kernel driver, so it should be quite fast.. it is expected to hold a relatively small (~200 in working set) amount of keys and a large amount of…
kagali-san
  • 2,964
  • 7
  • 48
  • 87
7
votes
1 answer

unresolved external symbol __stdio_common_vswprintf

I'm compiling a kernel mode driver that uses the Microsoft Dmf framework (DmfK.lib) After the last Visual Studio update some strange linker errors appeared : EmulationTargetPDO.obj : error LNK2019: unresolved external symbol __stdio_common_vswprintf…
SamT
  • 528
  • 4
  • 14
7
votes
4 answers

What is a Windows Kernel Driver?

What is Windows Kernel Driver written with the WDK? What is different from normal app or service?
userbb
  • 2,148
  • 5
  • 30
  • 53
7
votes
3 answers

How to understand the "NTSTATUS", "NT_SUCCESS" typedef in windows ddk?

Two questions: 1. In "ntdef.h" the NTSTATUS is defined as follow: typedef __success(return >= 0) LONG NTSTATUS; what the hell is the "__success(return >= 0)"? 2. In "ntstatus.h", STATUS_SUCCESS is defined to 0. #define STATUS_SUCCESS …
ZhengZhiren
  • 1,312
  • 1
  • 11
  • 14
1
2
3
50 51