Questions tagged [windows-driver]
30 questions
2
votes
0 answers
is it possible for pnputil to ignore unsigned drivers?
I've seen lots of question online that are the antonym of this, which is not what I want. I'm using pnputil, with wildcards, to install a driver pack to a machine. I want to enforce digital signatures and not install any unsigned drivers. The…

Ed R.
- 159
- 1
- 9
1
vote
1 answer
driver handling \Device\
In windows there are device like \Device\ that could be found using Winobj from Sysinternals.
How can we find out which kernel side driver is handling operations for that device?
Im sorry for not being able to ask my question in more clear way.
I…

David
- 17
- 5
1
vote
1 answer
Microsoft Partner Center HLKX driver submission: SHA2 error with SHA384 certificate
We've been submitting drivers to Partner Center for validation and signature by Microsoft for a long time. Recently our Authenticode certificate expired, so we purchased a new one. When we submit driver packages signed by the new certificate, we get…

Helge Klein
- 8,829
- 8
- 51
- 71
1
vote
0 answers
Is there way to ignore not-found system function in a kernel .sys module? so to run .sys in older Windows
I'm facing such a problem. I've built a Windows kernel mode driver using WDK11, and, in order to pass Windows 11 WHQL, I need to use new memory allocating function ExAllocatePool2. The problem is, this driver will fail to load on Windows 7.
You…

Jimm Chen
- 3,411
- 3
- 35
- 59
0
votes
0 answers
code 1284 Class "Sample" is reserved for use by Microsoft; code 1293 Service "ECHO" is reserved
I am trying to run the echo demo from this repository, but got some errors as the image shows below, anyone knows how to solve this problem?
enter image description here
I had tried from this…

Jingle Zhang
- 1
- 1
0
votes
0 answers
Unloading a Windows Driver
I am creating a Network driver using Windows KMDF Driver and Windows Filtering Platform(WFP) API.
In my driver, I am allocating memory X using ExAllocatePoolWithTag() and using that address in localRedirectContext.
I am fetching that data…

Steve Selva
- 1
- 1
0
votes
0 answers
Unloading WDM mouse filter driver requires additional mouse click
I looked up the mouse filter driver projects on github, there is a global variable call pendingKey in every one of them.
The variable is increased in DispatchRead function
and is decreased in ReadComplete function
The devices created can be safely…

hljlishen
- 11
0
votes
0 answers
Windows kernel's WskSocket function fails to receive UDP from physical interface
I am using Winsock (WskSocket, WskBind and WskReceiveFrom) in my driver to receive UDP packets on port 4000. Code is based on Windows-driver-samples (wsksample) and it works but only when I send the data locally on loopback interface. Driver do not…
0
votes
0 answers
After the manually created READ request is sent to the target device, the data obtained remains unchanged
I am still working on developing a USB HID filter driver (gamepad) using the **WDF **framework. In this filter driver, I have created a queue of type **WDF_IO_QUEUE_DISPATCH_TYPE **with **WdfIoQueueDispatchParallel **dispatching and implemented the…
0
votes
0 answers
How can I get windows print filter driver to compile in VS 2022
I'm trying to create a filter driver. I installed the Windows DDK and the new templates show up in Visual Studio Community 2022. But when I create an XPS print filter driver, it doesn't compile. Either I'm missing definitions or stuff is…

user9778277
- 153
- 1
- 11
0
votes
0 answers
How to collect WPP traces in realtime by user space app?
I'm working on Windows user space app development. Also in the same time i'm developing Windows kernel mode driver. Driver has enabled WPP traces on particular GUID. Let's call it DRIVER_PROVIDER_GUID. For now i was using tool like TraceView to…

TheKwiatek666
- 101
- 3
0
votes
1 answer
Call a C++ DLL from C KMDF (Kernel Mode Driver Framework)
I want to call a C++ DLL from a C KMDF, I made this code
C++ Code
dll.h
extern "C" {
__declspec(dllexport) void MyFunction();
}
dll.cpp
void MyFunction()
{
std::cout << "Hello from MyFunction in C++ MyLibrary.dll" <<…

Ferrus
- 15
- 6
0
votes
0 answers
No driver is generated after building a sample project in visual studio
I'm trying to build this sample which is a simple hello world driver. The problem is that the solution is successfully built but no output is generated in the output directory.
The configuration is set on Release and the platform is x64. I've also…

zbx0310
- 64
- 8
0
votes
0 answers
Windows driver for Azure RTOS FileX with fault tolerant mode enabled
I'm working on a development project which incorporates Azure ThreadX RTOS. The embedded system contains an sdcard on which we would like to enable FileX's fault tolerant mode to make it more resilient to filesystem corruption. The problem is that…

Ken
- 1
0
votes
0 answers
NT Kernel Crash while RtlAppendUnicodeStringToString
Recently, I have a problem when writing a Windows driver. Using RtlAppendUnicodeStringToString to concatenate several UNICODE_STRINGs continuously will cause a kernel crash. I have locked the problem in the following code, please help me solve this…

Haru1ca
- 19
- 1