Questions tagged [wdm]

Windows Driver Model is a framework for device drivers that was introduced with Windows 98 and Windows 2000 to replace VxD. It was later replaced with Windows Driver Foundation (WDF).

134 questions
0
votes
1 answer

Should I use WDM when developing a file system minifilter driver? Should I use KMDF? Or is there anything wrong with it?

Should I use WDM when developing a file system minifilter driver? Should I use KMDF? Or is there anything wrong with it?
김정훈
  • 19
  • 1
0
votes
0 answers

Windows Error code 38 suggests a device driver failed to unload

Some Windows 2012-R2 customers see an Error Code 38 when they try to re-enumerate a PnP device which has been previously removed even though a trace of the driver (WDM) for that device indicates its unload routine has been called and it has…
0
votes
1 answer

How to build a WDM driver in WDK?

I want to build a WDM driver in the latest WDK. What's the difference between the sources file for WDM and WDF? How can I specify the build taget as WDM instead of WDF?
Thomson
  • 20,586
  • 28
  • 90
  • 134
0
votes
1 answer

How to get the include paths of WDM compiler?

I'm reading the source code of some device driver for Windows XP, and I want to know the exact include paths of the WDM compiler. I know that these should be included…
solotim
  • 1,826
  • 4
  • 24
  • 41
0
votes
1 answer

Is there a Windows kernel API to get current CPU usage percent, or idle percent?

I ask this question because I'd like to know this from my kernel mode Windows driver. I have some library code porting from user mode that has some accompanying stress test to run; that stress test code need to know when CPU is idle. Simple…
Jimm Chen
  • 3,411
  • 3
  • 35
  • 59
0
votes
1 answer

Creating a windows kernel dump using C (kernel mode driver)

I need to create full memory and kernel memory dumps using a kernel mode driver in windows. Just like what .dump command do using WinDBG, but I need to do it in my code. Any Ideas how to do so?
AmirhoseiN
  • 11
  • 2
0
votes
1 answer

Connection lost to target after .reload command

In WinDbg: File->Symbole File Path? I set the path to: Srv*c:\symbols*https://msdl.microsoft.com/download/symbols After this path file setting I'm trying to make this example: https://msdn.microsoft.com/en-us/library/windows/hardware/mt269367 In…
MarksSO
  • 63
  • 1
  • 12
0
votes
1 answer

What version of NDIS to use and maybe even what WDK?

So I'm porting an old 32bit NIC driver which was written for NDIS 5.0. I'm targeting (if possible) all 64bit Windows versions starting from XP. What NDIS version to use? From what I've read it should be less then 6 because then Windows XP x64 won't…
AnArrayOfFunctions
  • 3,452
  • 2
  • 29
  • 66
0
votes
1 answer

Creating WDM network driver targeting WinXP x64 - where to start?

I downloaded Visual Studio Community Edition with all the C++ install options. Then I installed WDK targeting WinXP. However it seems like VS can't recognise this and so there is no option in the new project wizard to create an WDM driver. I was…
AnArrayOfFunctions
  • 3,452
  • 2
  • 29
  • 66
0
votes
1 answer

Are there any way or place to know how to build WDM in VS 2013?

I have learned about the rootkit Then, I tried to practice example codes, but, I can't build a wdm driver(only can KMDF) So, I've searched so many websites but that documents was out-dated Can you tell me the way or some good place to learn with VS…
0
votes
2 answers

Visual Studio - ntoskrnl.exe cannot be found

I'm writing a Windows DLL and I need some functions from wdm.h. I'm linking with ntoskrnl.lib and it compiles just find with no warnings or errors and when it runs the application, it says cannot find ntoskrnl.exe. However, that EXE is in my…
Caleb Merchant
  • 289
  • 1
  • 5
  • 16
0
votes
1 answer

How to set system time in a Windows WDM driver?

We are developing a GPS time sychronization hardware device. And we want write a Windows WDM driver for the device. To avoid the user level latency, we'd like set windows( XP/Vista/7) system time in the kernel driver level. Does anyone know how to…
Xu Jun
  • 1
  • 1
0
votes
0 answers

How do you explicitly link a .sys file

How can I explicitly link to a .sys file on windows? MSDN says you can use the LoadLibrary() and the GetProcAddress() functions to basically explicitly link and access members of a dll. I can successfully use this to at least get a handle for an…
marshal craft
  • 439
  • 5
  • 18
0
votes
2 answers

Windows Server debugging: view User Mode Stack in WDM Kernel Mode Driver Breakpoint

I'm debugging a WDM Kernel driver IOCTL using Visual Studio Kernel Mode Debugger via pipe Serial connection to a Hyper-V VM running Windows Server 2012 R2. Once I hit a breakpoint inside the Driver IOControl is it possible to view the user mode call…
0
votes
1 answer

error when try convert for UNICODE_STRING * To UNICODE_STRING

i am trying to write simple driver for get full path of Image when Process executed based on Steve Townsend Answer i write below code for my ProcessCallback that call from PsSetCreateProcessNotifyRoutine in DriverEntry of my driver: void…
AminM
  • 1,658
  • 4
  • 32
  • 48
1 2 3
8
9