[WDF] Fix KMDF so it can compile with ReactOS SDK

Not all files are included, but these are necessary to compile cdrom driver.
So far it can only be statically linked with drivers, a proper
implementation requires wdfldr helper driver
This commit is contained in:
Victor Perevertkin 2020-10-16 06:30:51 +03:00
parent 8a978a179f
commit 1f377076d7
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
258 changed files with 4047 additions and 2387 deletions

View file

@ -6,10 +6,10 @@
// Tracing support
extern "C" {
#if defined(EVENT_TRACING)
#include "GlobalsKm.tmh"
#include "globalskm.tmh"
#endif
#include <wdfcxbase.h>
// #include <wdfcxbase.h>
#include <fxldr.h>
@ -45,6 +45,7 @@ __drv_minIRQL(DISPATCH_LEVEL)
__drv_requiresIRQL(DISPATCH_LEVEL)
__drv_sameIRQL
VOID
STDCALL
FxFlushDpc (
__in struct _KDPC *Dpc,
__in_opt PVOID DeferredContext,

View file

@ -41,6 +41,7 @@ extern "C" {
__drv_maxIRQL(DISPATCH_LEVEL)
NTKERNELAPI
PMDL
STDCALL
IoAllocateMdl(
__in_opt __drv_aliasesMem PVOID VirtualAddress,
__in ULONG Length,
@ -52,6 +53,7 @@ IoAllocateMdl(
__drv_maxIRQL(DISPATCH_LEVEL)
NTKERNELAPI
VOID
STDCALL
IoFreeMdl(
PMDL Mdl
);