[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

@ -46,6 +46,11 @@ Revision History:
#define _FXGLOBALS_H
#include "wdfglobals.h"
#include <debug.h>
// REACTOS
#define ROSWDFNOTIMPLEMENTED (DbgPrint("(%s:%d) ReactOS KMDF: %s not implemented\n", __RELFILE__, __LINE__, __FUNCTION__))
// REACTOS
#ifdef __cplusplus
extern "C" {
@ -68,7 +73,7 @@ typedef enum FxTrackPowerOption : UCHAR {
FxTrackPowerRefs,
FxTrackPowerRefsAndStack,
FxTrackPowerMaxValue
};
} FxTrackPowerOption;
typedef enum FxVerifierDownlevelOption {
NotOkForDownLevel = 0,
@ -847,13 +852,15 @@ struct FxLibraryGlobalsType {
// tracing of WDF operations. The size member of this structure
// allows versioning across multiple OS versions.
//
PWMI_WDF_NOTIFY_ROUTINES PerfTraceRoutines;
//PWMI_WDF_NOTIFY_ROUTINES PerfTraceRoutines; __REACTOS__
PVOID PerfTraceRoutines;
//
// PerfTraceRoutines points here if the SystemTraceProvider failed
// to provide trace routines.
//
WMI_WDF_NOTIFY_ROUTINES DummyPerfTraceRoutines;
//WMI_WDF_NOTIFY_ROUTINES DummyPerfTraceRoutines; __REACTOS__
PVOID DummyPerfTraceRoutines;
#endif